mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
12 lines
280 B
PHP
12 lines
280 B
PHP
--TEST--
|
|
ReflectionObject::getName - forbid static invocation
|
|
--FILE--
|
|
<?php
|
|
ReflectionObject::getName();
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Non-static method ReflectionClass::getName() cannot be called statically in %s:2
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line 2
|