blob: 95a6b3c1706680b1f22957f7802e3e53cb7cf520 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--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
|