Skip to content

Commit a0ba104

Browse files
committed
Merge branch 'PHP-8.1'
* PHP-8.1: Remove bogus type of $object param in SplObjectStorage::offsetSet()
2 parents 85af420 + 24be11f commit a0ba104

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/spl/spl_observer.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function offsetGet($object): mixed {}
9090
* @implementation-alias SplObjectStorage::attach
9191
* @no-verify Cannot specify arg type because ArrayAccess does not
9292
*/
93-
public function offsetSet(mixed $object, mixed $info = null): void {}
93+
public function offsetSet($object, mixed $info = null): void {}
9494

9595
/**
9696
* @param object $object

ext/spl/spl_observer_arginfo.h

Lines changed: 2 additions & 2 deletions
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: a3c87f5b7edd257e25d6651628dd9896e14f5715 */
2+
* Stub hash: 63dde3294f600164805befd79b1f670fbfb23571 */
33

44
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObserver_update, 0, 1, IS_VOID, 0)
55
ZEND_ARG_OBJ_INFO(0, subject, SplSubject, 0)
@@ -75,7 +75,7 @@ ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage
7575
ZEND_END_ARG_INFO()
7676

7777
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_SplObjectStorage_offsetSet, 0, 1, IS_VOID, 0)
78-
ZEND_ARG_TYPE_INFO(0, object, IS_MIXED, 0)
78+
ZEND_ARG_INFO(0, object)
7979
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, info, IS_MIXED, 0, "null")
8080
ZEND_END_ARG_INFO()
8181

0 commit comments

Comments
 (0)