1--TEST-- 2Test typed properties respect strict types (on) 3--FILE-- 4<?php 5declare(strict_types=1); 6 7class Foo { 8 public int $bar; 9} 10 11$foo = new Foo; 12$foo->bar = "1"; 13?> 14--EXPECTF-- 15Fatal error: Uncaught TypeError: Typed property Foo::$bar must be int, string used in %s:9 16Stack trace: 17#0 {main} 18 thrown in %s on line 9 19