File tree 1 file changed +21
-6
lines changed
1 file changed +21
-6
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,11 @@ public function count(): int
44
44
/**
45
45
* Replaces or appends a item.
46
46
*
47
+ * @param mixed $key
48
+ * @param mixed $value
47
49
* @throws GitLabApiException
48
50
*/
49
- public function offsetSet (mixed $ key , mixed $ value ): void
51
+ public function offsetSet ($ key , $ value ): void
50
52
{
51
53
if (!is_scalar ($ key )) { // prevents null
52
54
throw new GitLabApiException ('Key must be either a string or an integer, " ' . gettype ($ key ) . '" given. ' );
@@ -55,21 +57,34 @@ public function offsetSet(mixed $key, mixed $value): void
55
57
}
56
58
57
59
58
- public function offsetGet (mixed $ key ): mixed
60
+ /**
61
+ * Returns a item.
62
+ *
63
+ * @param mixed $key
64
+ */
65
+ public function offsetGet ($ key ): mixed
59
66
{
60
67
return $ this ->$ key ;
61
68
}
62
69
63
70
64
- /** Determines whether a item exists. */
65
- public function offsetExists (mixed $ key ): bool
71
+ /**
72
+ * Determines whether a item exists.
73
+ *
74
+ * @param mixed $key
75
+ */
76
+ public function offsetExists ($ key ): bool
66
77
{
67
78
return isset ($ this ->$ key );
68
79
}
69
80
70
81
71
- /** Removes the element from this list. */
72
- public function offsetUnset (mixed $ key ): void
82
+ /**
83
+ * Removes the element from this list.
84
+ *
85
+ * @param mixed $key
86
+ */
87
+ public function offsetUnset ($ key ): void
73
88
{
74
89
unset($ this ->$ key );
75
90
}
You can’t perform that action at this time.
0 commit comments