Skip to content

Commit d618ed0

Browse files
committed
Fix some return types in ext/spl
Closes GH-7237
1 parent 2afbacc commit d618ed0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ext/spl/spl_observer.stub.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ public function contains(object $object) {}
3434
/** @return int */
3535
public function addAll(SplObjectStorage $storage) {}
3636

37-
/** @return void */
37+
/** @return int */
3838
public function removeAll(SplObjectStorage $storage) {}
3939

40-
/** @return void */
40+
/** @return int */
4141
public function removeAllExcept(SplObjectStorage $storage) {}
4242

4343
/** @return mixed */
@@ -58,7 +58,7 @@ public function valid() {}
5858
/** @return int */
5959
public function key() {}
6060

61-
/** @return object */
61+
/** @return object|null */
6262
public function current() {}
6363

6464
/** @return void */
@@ -138,10 +138,10 @@ public function rewind() {}
138138
/** @return bool */
139139
public function valid() {}
140140

141-
/** @return array */
141+
/** @return array|false */
142142
public function key() {}
143143

144-
/** @return array */
144+
/** @return array|false */
145145
public function current() {}
146146

147147
/** @return void */

ext/spl/spl_observer_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: aaefa4d4ac3b795212191d9fe06982d29948f552 */
2+
* Stub hash: 36fd33124b8d53051b283fafa5c4a92f3ca04f14 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplObserver_update, 0, 0, 1)
55
ZEND_ARG_OBJ_INFO(0, subject, SplSubject, 0)

0 commit comments

Comments
 (0)