← Back
Editing: ReflectionParameter_ctor_cast.phpt
--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
Save File
Cancel