1--TEST--
2Constructor promotion cannot be used in a free function
3--FILE--
4<?php
5
6function __construct(public $prop) {}
7
8?>
9--EXPECTF--
10Fatal error: Cannot declare promoted property outside a constructor in %s on line %d
11