1
0
mirror of https://github.com/php/php-src.git synced 2026-04-06 15:43:13 +02:00
Files
archived-php-src/Zend/tests/traits/error_013.phpt
Felipe Pena 7b7463bb8a - New tests
2010-05-06 19:21:11 +00:00

20 lines
283 B
PHP

--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