mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
19 lines
316 B
PHP
19 lines
316 B
PHP
--TEST--
|
|
Cannot use static in trait insteadof method reference
|
|
--FILE--
|
|
<?php
|
|
|
|
trait SomeTrait {
|
|
public function foobar() {}
|
|
}
|
|
|
|
class Test {
|
|
use SomeTrait {
|
|
static::foobar insteadof SomeTrait;
|
|
}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use "static" as trait name, as it is reserved in %s on line %d
|