1--TEST--
2Constructor promotion can only be used in constructors ... duh
3--FILE--
4<?php
5
6class Test {
7    public function foobar(public int $x, public int $y) {}
8}
9
10?>
11--EXPECTF--
12Fatal error: Cannot declare promoted property outside a constructor in %s on line %d
13