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: Cannot assign string to property Foo::$bar of type int in %s:%d 16Stack trace: 17#0 {main} 18 thrown in %s on line %d 19