1--TEST-- 2Test typed properties weak conversion of strings 3--FILE-- 4<?php 5 6class Foo { 7 public int $bar = 1; 8} 9 10$foo = new Foo; 11$foo->bar = "10"; 12 13var_dump($foo->bar); 14?> 15--EXPECT-- 16int(10) 17