mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
16a9bc1ec2
Also fix a bug with return types where "self" was rejected inside a class, but not on a method. Fallout: A couple of tests changed to more generic error messages.
11 lines
197 B
PHP
11 lines
197 B
PHP
--TEST--
|
|
Cannot access self::class when no class scope is active
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(self::class);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use "self" when no class scope is active in %s on line 3
|