summaryrefslogtreecommitdiff
path: root/ext/spl
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2021-01-18 16:14:31 +0100
committerNikita Popov <nikita.ppv@gmail.com>2021-01-19 09:48:33 +0100
commita9efcb1561a10bf0324f23c0f30b9447aa753a47 (patch)
treef1c651ce39243ecc29e8703f4428e77686f692b8 /ext/spl
parentd340be0d3246542c1ae34d632f36510fb1792852 (diff)
downloadphp-git-a9efcb1561a10bf0324f23c0f30b9447aa753a47.tar.gz
gen_stub: Also verify implementation-alias
This makes --verify also check @implementation-alias. Failures are ignored using @no-verify instead. Some mistakes have been made that would have been caught by this... Closes GH-6615.
Diffstat (limited to 'ext/spl')
-rw-r--r--ext/spl/spl_observer.stub.php3
-rw-r--r--ext/spl/spl_observer_arginfo.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/ext/spl/spl_observer.stub.php b/ext/spl/spl_observer.stub.php
index 6fcd3c4c69..b7b423e984 100644
--- a/ext/spl/spl_observer.stub.php
+++ b/ext/spl/spl_observer.stub.php
@@ -74,6 +74,7 @@ class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
* @param object $object
* @return bool
* @implementation-alias SplObjectStorage::contains
+ * @no-verify Cannot specify arg type because ArrayAccess does not
*/
public function offsetExists($object) {}
@@ -87,6 +88,7 @@ class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
* @param object $object
* @return void
* @implementation-alias SplObjectStorage::attach
+ * @no-verify Cannot specify arg type because ArrayAccess does not
*/
public function offsetSet($object, mixed $info = null) {}
@@ -94,6 +96,7 @@ class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
* @param object $object
* @return void
* @implementation-alias SplObjectStorage::detach
+ * @no-verify Cannot specify arg type because ArrayAccess does not
*/
public function offsetUnset($object) {}
diff --git a/ext/spl/spl_observer_arginfo.h b/ext/spl/spl_observer_arginfo.h
index db9b1d1125..f802c2a5a8 100644
--- a/ext/spl/spl_observer_arginfo.h
+++ b/ext/spl/spl_observer_arginfo.h
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: aaefa4d4ac3b795212191d9fe06982d29948f552 */
+ * Stub hash: fdcb6eb431f6accdb8e44ecc735ae563a5651edf */
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_SplObserver_update, 0, 0, 1)
ZEND_ARG_OBJ_INFO(0, subject, SplSubject, 0)