1 2 3 4 5 6 7 8 9 10 11 12 13 14
--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