]> granicus.if.org Git - php/commit
Check `ReflectionReference::fromArrayElement` with union types
authorGabriel Caruso <carusogabriel34@gmail.com>
Mon, 14 Sep 2020 14:06:18 +0000 (16:06 +0200)
committerGabriel Caruso <carusogabriel34@gmail.com>
Tue, 15 Sep 2020 10:56:10 +0000 (12:56 +0200)
commit1a8936cde3a14a1fdcd0f2a4cd567e5a3e206e65
tree5afaedeff999ce14856d493d56245ab72dd0957a
parentc1823c6c8a1770734ab356090405849d2e9fec07
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
ext/reflection/php_reflection.c
ext/reflection/php_reflection.stub.php
ext/reflection/php_reflection_arginfo.h
ext/reflection/tests/ReflectionReference_errors.phpt