mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
064b464448
RFC: https://wiki.php.net/rfc/constructor_promotion Closes GH-5291.
15 lines
228 B
PHP
15 lines
228 B
PHP
--TEST--
|
|
Clash between promoted and explicit property
|
|
--FILE--
|
|
<?php
|
|
|
|
class Test {
|
|
public $prop;
|
|
|
|
public function __construct(public $prop) {}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot redeclare Test::$prop in %s on line %d
|