1--TEST--
2Test typed properties disallow incorrect type initial value (scalar)
3--FILE--
4<?php
5class Foo {
6    public int $bar = "string";
7}
8?>
9--EXPECTF--
10Fatal error: Cannot use string as default value for property Foo::$bar of type int in %s on line 3
11