diff options
author | Sammy Kaye Powers <sammyk@sammykmedia.com> | 2017-04-20 13:08:11 -0500 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2017-05-01 12:19:47 +0200 |
commit | 12300f465e5bed1fa7d0bc445aef68b6a2753c3b (patch) | |
tree | e9ce7dff42c5c16ac2f273b30b0496d07f98c7b8 /Zend/tests/ns_trailing_comma_error_06.phpt | |
parent | 1f42a50840e7462a4c1ad94a32730baee9ecf707 (diff) | |
download | php-git-12300f465e5bed1fa7d0bc445aef68b6a2753c3b.tar.gz |
Add trailing comma syntax support for mixed and unmixed group use lists
RFC: https://wiki.php.net/rfc/list-syntax-trailing-commas
Diffstat (limited to 'Zend/tests/ns_trailing_comma_error_06.phpt')
-rw-r--r-- | Zend/tests/ns_trailing_comma_error_06.phpt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Zend/tests/ns_trailing_comma_error_06.phpt b/Zend/tests/ns_trailing_comma_error_06.phpt new file mode 100644 index 0000000000..2f2738e204 --- /dev/null +++ b/Zend/tests/ns_trailing_comma_error_06.phpt @@ -0,0 +1,8 @@ +--TEST-- +Unmixed group use declarations mustn't allow more than one comma +--FILE-- +<?php +use const Baz\{Foo,,}; +?> +--EXPECTF-- +Parse error: syntax error, unexpected ',', expecting '}' in %s on line %d
\ No newline at end of file |