diff options
author | Xinchen Hui <laruence@gmail.com> | 2015-11-25 19:06:42 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2015-11-25 19:06:42 +0800 |
commit | 05738eb71a05190a7a9df0f5fd1d1c4b7dd49d82 (patch) | |
tree | 2c999b36ea9679b19dda1e0b94e72741bbe1ccb2 /Zend/zend_language_parser.y | |
parent | 0134de7cff377ecda5cc2338d3fbd42b77d0ec16 (diff) | |
download | php-git-05738eb71a05190a7a9df0f5fd1d1c4b7dd49d82.tar.gz |
Revert "Improved fix for Fully qualified (leading backslash) type names must fail"
This reverts commit 00865ae22f2c5fdee9e500ce79d442467e0a0899.
Diffstat (limited to 'Zend/zend_language_parser.y')
-rw-r--r-- | Zend/zend_language_parser.y | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Zend/zend_language_parser.y b/Zend/zend_language_parser.y index ed7af7e55d..3fc6494702 100644 --- a/Zend/zend_language_parser.y +++ b/Zend/zend_language_parser.y @@ -643,12 +643,6 @@ optional_type: type: T_ARRAY { $$ = zend_ast_create_ex(ZEND_AST_TYPE, IS_ARRAY); } | T_CALLABLE { $$ = zend_ast_create_ex(ZEND_AST_TYPE, IS_CALLABLE); } - | T_NS_SEPARATOR T_ARRAY - { $$ = NULL; zend_error_noreturn(E_COMPILE_ERROR, - "Cannot use the builtin type 'array' as fully qualified with a leading backslash"); } - | T_NS_SEPARATOR T_CALLABLE - { $$ = NULL; zend_error_noreturn(E_COMPILE_ERROR, - "Cannot use the builtin type 'callable' as fully qualified with a leading backslash"); } | name { $$ = $1; } ; |