Skip to content

Commit

Permalink
Fix some return types in ext/spl
Browse files Browse the repository at this point in the history
Closes GH-7237
  • Loading branch information
kocsismate committed Jul 14, 2021
1 parent 2afbacc commit d618ed0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions ext/spl/spl_observer.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public function contains(object $object) {}
/** @return int */
public function addAll(SplObjectStorage $storage) {}

/** @return void */
/** @return int */
public function removeAll(SplObjectStorage $storage) {}

/** @return void */
/** @return int */
public function removeAllExcept(SplObjectStorage $storage) {}

/** @return mixed */
Expand All @@ -58,7 +58,7 @@ public function valid() {}
/** @return int */
public function key() {}

/** @return object */
/** @return object|null */
public function current() {}

/** @return void */
Expand Down Expand Up @@ -138,10 +138,10 @@ public function rewind() {}
/** @return bool */
public function valid() {}

/** @return array */
/** @return array|false */
public function key() {}

/** @return array */
/** @return array|false */
public function current() {}

/** @return void */
Expand Down
2 changes: 1 addition & 1 deletion ext/spl/spl_observer_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: aaefa4d4ac3b795212191d9fe06982d29948f552 */
* Stub hash: 36fd33124b8d53051b283fafa5c4a92f3ca04f14 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplObserver_update, 0, 0, 1)
ZEND_ARG_OBJ_INFO(0, subject, SplSubject, 0)
Expand Down

0 comments on commit d618ed0

Please sign in to comment.