1--TEST-- 2Test typed properties coerce int to float even in strict mode 3--FILE-- 4<?php 5declare(strict_types=1); 6 7class Bar 8{ 9 public float $bar; 10 11 public function setBar($value) { 12 $this->bar = $value; 13 } 14} 15 16$bar = new Bar(); 17 18$bar->setBar(100); 19 20var_dump($bar->bar); 21--EXPECT-- 22float(100) 23