summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.stub.php
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2020-09-14 16:06:18 +0200
committerGabriel Caruso <carusogabriel34@gmail.com>2020-09-15 12:56:10 +0200
commit1a8936cde3a14a1fdcd0f2a4cd567e5a3e206e65 (patch)
tree5afaedeff999ce14856d493d56245ab72dd0957a /ext/reflection/php_reflection.stub.php
parentc1823c6c8a1770734ab356090405849d2e9fec07 (diff)
downloadphp-git-1a8936cde3a14a1fdcd0f2a4cd567e5a3e206e65.tar.gz
Check `ReflectionReference::fromArrayElement` with union types
ReflectionReference::fromArrayElement(array $array, int|string $key): ?ReflectionReference is going to be its official signature for PHP 8.0. Closes GH-5651
Diffstat (limited to 'ext/reflection/php_reflection.stub.php')
-rw-r--r--ext/reflection/php_reflection.stub.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/reflection/php_reflection.stub.php b/ext/reflection/php_reflection.stub.php
index d1ba2cf624..1f4bbb5e86 100644
--- a/ext/reflection/php_reflection.stub.php
+++ b/ext/reflection/php_reflection.stub.php
@@ -643,8 +643,7 @@ class ReflectionZendExtension implements Reflector
final class ReflectionReference
{
- /** @param int|string $key */
- public static function fromArrayElement(array $array, $key): ?ReflectionReference {}
+ public static function fromArrayElement(array $array, int|string $key): ?ReflectionReference {}
public function getId(): string {}