File tree 2 files changed +32
-27
lines changed
2 files changed +32
-27
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " chroma-x/stack-util" ,
3
- "type" : " library" ,
4
- "description" : " A PHP library providing common stack implementation." ,
5
- "keywords" : [
6
- " stack"
7
- ],
8
- "homepage" : " http ://chroma-x.de/" ,
9
- "license" : " MIT" ,
10
- "authors" : [
11
- {
12
- "name" : " Martin Brecht-Precht" ,
13
-
14
- "homepage" : " http ://chroma-x.de"
15
- }
16
- ],
17
- "autoload" : {
18
- "psr-4" : {
19
- "ChromaX\\ StackUtil\\ " : " src/"
20
- }
21
- },
22
- "require" : {
23
- "php" : " >=5.3"
24
- },
25
- "require-dev" : {
26
- "phpunit/phpunit" : " >=4.8.26" ,
27
- "codeclimate/php-test-reporter" : " dev-master"
28
- }
2
+ "name" : " chroma-x/stack-util" ,
3
+ "type" : " library" ,
4
+ "description" : " A PHP library providing common stack implementation." ,
5
+ "keywords" : [
6
+ " stack"
7
+ ],
8
+ "homepage" : " https ://chroma-x.de/" ,
9
+ "license" : " MIT" ,
10
+ "authors" : [
11
+ {
12
+ "name" : " Martin Brecht-Precht" ,
13
+
14
+ "homepage" : " https ://chroma-x.de"
15
+ }
16
+ ],
17
+ "autoload" : {
18
+ "psr-4" : {
19
+ "ChromaX\\ StackUtil\\ " : " src/"
20
+ }
21
+ },
22
+ "require" : {
23
+ "php" : " >=5.3"
24
+ },
25
+ "require-dev" : {
26
+ "phpunit/phpunit" : " >=4.8.26" ,
27
+ "codeclimate/php-test-reporter" : " dev-master"
28
+ }
29
29
}
Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ public function delete($index)
100
100
* @link http://php.net/manual/en/iterator.current.php
101
101
* @return mixed
102
102
*/
103
+ #[\ReturnTypeWillChange]
103
104
public function current ()
104
105
{
105
106
return $ this ->items [$ this ->cursor ];
@@ -111,6 +112,7 @@ public function current()
111
112
* @link http://php.net/manual/en/iterator.next.php
112
113
* @return void
113
114
*/
115
+ #[\ReturnTypeWillChange]
114
116
public function next ()
115
117
{
116
118
++$ this ->cursor ;
@@ -122,6 +124,7 @@ public function next()
122
124
* @link http://php.net/manual/en/iterator.key.php
123
125
* @return mixed scalar on success, or null on failure.
124
126
*/
127
+ #[\ReturnTypeWillChange]
125
128
public function key ()
126
129
{
127
130
return $ this ->cursor ;
@@ -133,6 +136,7 @@ public function key()
133
136
* @link http://php.net/manual/en/iterator.valid.php
134
137
* @return boolean
135
138
*/
139
+ #[\ReturnTypeWillChange]
136
140
public function valid ()
137
141
{
138
142
return isset ($ this ->items [$ this ->cursor ]);
@@ -144,6 +148,7 @@ public function valid()
144
148
* @link http://php.net/manual/en/iterator.rewind.php
145
149
* @return void
146
150
*/
151
+ #[\ReturnTypeWillChange]
147
152
public function rewind ()
148
153
{
149
154
$ this ->cursor = 0 ;
You can’t perform that action at this time.
0 commit comments