summaryrefslogtreecommitdiff
path: root/Zend/zend_language_parser.y
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2016-06-13 09:33:19 -0700
committerXinchen Hui <laruence@gmail.com>2016-06-13 09:33:19 -0700
commitaeb3948f3ce360f8ff77ba84a9ddef5dda522c5d (patch)
tree68101d70eb18b2db11b4b23c390be27f1ecfcfaf /Zend/zend_language_parser.y
parentf2fd4691521713b35a37762d4d53f5b7b9a76e47 (diff)
downloadphp-git-aeb3948f3ce360f8ff77ba84a9ddef5dda522c5d.tar.gz
Cleanup
Diffstat (limited to 'Zend/zend_language_parser.y')
-rw-r--r--Zend/zend_language_parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_language_parser.y b/Zend/zend_language_parser.y
index c37bd7f20c..3d38a4c853 100644
--- a/Zend/zend_language_parser.y
+++ b/Zend/zend_language_parser.y
@@ -1183,7 +1183,7 @@ property_name:
;
array_pair_list:
- non_empty_array_pair_list { /* allow single trailing comma */ zend_ast_list *list = zend_ast_get_list($$ = $1); if (list->child[list->children - 1] == NULL) { list->children--; } }
+ non_empty_array_pair_list { /* allow single trailing comma */ zend_ast_list_rtrim($$ = $1); }
;
possible_array_pair: