summaryrefslogtreecommitdiff
path: root/Zend/tests/static_in_trait_insteadof_list.phpt
blob: 77ecf1e42baa3e8cc5facb6e5914b484132ddddb (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 list
--FILE--
<?php

trait SomeTrait {
    public function foobar() {}
}

class Test {
    use SomeTrait {
        SomeTrait::foobar insteadof static;
    }
}

?>
--EXPECTF--
Fatal error: Cannot use 'static' as trait name, as it is reserved in %s on line %d