mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
13 lines
253 B
PHP
13 lines
253 B
PHP
--TEST--
|
|
Cannot access self::class when no class scope is active
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(self::class);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Cannot use "self" when no class scope is active in %s:3
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line 3
|