blob: 22bcda4ae73430d16965acc8211d0922ee507da5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--TEST--
Static type is not allowed in parameters
--FILE--
<?php
// TODO: We could prohibit this case in the compiler instead.
class Test {
public function test(static $param) {
}
}
?>
--EXPECTF--
Parse error: syntax error, unexpected token "static", expecting variable in %s on line %d
|