/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
reflection
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/reflection/tests/bug39884.phpt
--TEST-- Bug #39884 (ReflectionParameter::getClass() throws exception for type hint self) --FILE-- <?php class stubParamTest { function paramTest(self $param) { // nothing to do } } $test1 = new stubParamTest(); $test2 = new stubParamTest(); $test1->paramTest($test2); $refParam = new ReflectionParameter(array('stubParamTest', 'paramTest'), 'param'); var_dump($refParam->getClass()); ?> --EXPECTF-- Deprecated: Method ReflectionParameter::getClass() is deprecated in %s on line %d object(ReflectionClass)#4 (1) { ["name"]=> string(13) "stubParamTest" }
Copyright ©2k19 -
Hexid
|
Tex7ure