diff options
Diffstat (limited to 'Zend/tests/type_declarations/typed_properties_053.phpt')
-rw-r--r-- | Zend/tests/type_declarations/typed_properties_053.phpt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Zend/tests/type_declarations/typed_properties_053.phpt b/Zend/tests/type_declarations/typed_properties_053.phpt new file mode 100644 index 0000000000..1da42bcbd9 --- /dev/null +++ b/Zend/tests/type_declarations/typed_properties_053.phpt @@ -0,0 +1,12 @@ +--TEST-- +Typed properties disallow callable +--FILE-- +<?php +class A { + public callable $a; +} +$obj = new A; +var_dump($obj); +?> +--EXPECTF-- +Fatal error: Property A::$a cannot have type callable in %s on line %d |