1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/reflection/tests/ReflectionParameter_ctor_cast.phpt
2020-11-24 16:42:16 +01:00

19 lines
355 B
PHP

--TEST--
Test method name string cast in ReflectionParameter ctor
--FILE--
<?php
class A {}
try {
new ReflectionParameter([
A::class,
new class { public function __toString() { return 'method'; } }
], 'param');
} catch (ReflectionException $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Method A::method() does not exist