1--TEST-- 2Test typed properties disallow incorrect type initial value (object) 3--FILE-- 4<?php 5class Foo { 6 public stdClass $bar = null; 7} 8?> 9--EXPECTF-- 10Fatal error: Default value for property of type stdClass may not be null. Use the nullable type ?stdClass to allow null default value in %s on line %d 11