diff options
Diffstat (limited to 'Zend/tests/type_declarations/typed_properties_025.phpt')
-rw-r--r-- | Zend/tests/type_declarations/typed_properties_025.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/type_declarations/typed_properties_025.phpt b/Zend/tests/type_declarations/typed_properties_025.phpt new file mode 100644 index 0000000000..65187c1e17 --- /dev/null +++ b/Zend/tests/type_declarations/typed_properties_025.phpt @@ -0,0 +1,11 @@ +--TEST-- +Test typed properties type must preceed first declaration in group +--FILE-- +<?php +class Foo { + public $bar, + int $qux; +} +?> +--EXPECTF-- +Parse error: syntax error, unexpected 'int' (T_STRING), expecting variable (T_VARIABLE) in %s on line 4 |