mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
011071a3b3
The ZEND_MODIFIER_TARGET_CPP should really have been called _PARAM, but we shouldn't break API at this point. Fixes GH-12069 Closes GH-12175
13 lines
241 B
PHP
13 lines
241 B
PHP
--TEST--
|
|
Constructor promotion only permits visibility modifiers
|
|
--FILE--
|
|
<?php
|
|
|
|
class Test {
|
|
public function __construct(public static $x) {}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use the static modifier on a parameter in %s on line %d
|