]> granicus.if.org Git - php/commit
Remove unnecessary precedence/associativity annotations
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 15 Mar 2019 11:01:58 +0000 (12:01 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 15 Mar 2019 11:01:58 +0000 (12:01 +0100)
commit2a04efe0e42c9d7ac150bc918e16edb96cf4f219
treebf79f4aee697369c6e682a3f7da07a4c1d26ea0d
parent4cfa01bfb8c95b094e104a70e877cfe5aae04104
Remove unnecessary precedence/associativity annotations

Some of these are entirely unnecessary. Some specify an associativity
for operators where the concept doesn't make sense and has no effect:
Explicit associativity is only meaningful for binary operators. For
unary operators and constrained operations like instanceof or assignment
the associativity specification has no effect and only serves to confuse.

For example assignments were specified as %left, even though they will
actually behave as right-associative due to the variable requirement on
the LHS. Similarly instanceof was specified as %nonassoc, but it will
behave as left-associative, due to the restrictions places on the RHS.
Zend/tests/varSyntax/globalNonSimpleVariableError.phpt
Zend/zend_language_parser.y