blob: ac11c0fe3efa4c2343bee8172f191e557d83d152 (
plain)
1
2
3
4
5
6
7
8
9
10
|
--TEST--
Test typed properties disallow incorrect type initial value (object)
--FILE--
<?php
class Foo {
public stdClass $bar = null;
}
?>
--EXPECTF--
Fatal 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
|