diff options
author | Xinchen Hui <laruence@gmail.com> | 2017-07-27 12:50:17 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2017-07-27 12:50:17 +0800 |
commit | 9fcfe52d03bc40cfce8306debe2e91d83a560683 (patch) | |
tree | 9792453a2472156a2b0acfed250bbc37c314b940 /Zend | |
parent | e36c04ef483d85fe145ee07280d8c31e7e295644 (diff) | |
download | php-git-9fcfe52d03bc40cfce8306debe2e91d83a560683.tar.gz |
Fixed test
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/tests/bug69802.phpt | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/Zend/tests/bug69802.phpt b/Zend/tests/bug69802.phpt deleted file mode 100644 index ed0430f6d2..0000000000 --- a/Zend/tests/bug69802.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -Bug #69802 (Reflection on Closure::__invoke borks type hint class name) ---FILE-- -<?php -$f = function(stdClass $x): stdClass {}; -$r = new ReflectionMethod($f, '__invoke'); -var_dump($r->getParameters()[0]->getName()); -var_dump($r->getParameters()[0]->getClass()); -echo $r->getParameters()[0], "\n"; -echo $r->getReturnType(),"\n"; -echo $r,"\n"; -?> ---EXPECT-- -string(1) "x" -object(ReflectionClass)#4 (1) { - ["name"]=> - string(8) "stdClass" -} -Parameter #0 [ <required> stdClass $x ] -stdClass -Method [ <internal, prototype Closure> public method __invoke ] { - - - Parameters [1] { - Parameter #0 [ <required> stdClass $x ] - } - - Return [ stdClass ] -} |