blob: d9fda2d0056ffb48255775151234171dfe6b9ec7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--TEST--
Trying to use static as method modifier
--FILE--
<?php
trait foo {
public function test() { return 3; }
}
class bar {
use foo { test as static; }
}
$x = new bar;
var_dump($x->test());
?>
--EXPECTF--
Fatal error: Cannot use 'static' as method modifier in %s on line %d
|