-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce AbstractBinary for all binary operators #4482
Conversation
namespace Twig\Node\Expression; | ||
|
||
/** | ||
* Interface implemented by n-ary operators for n > 1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This interface can be defined on 1-ary operators, but that would not make sense.
|
||
$stream->expect(Token::PUNCTUATION_TYPE, ':', 'A type name must be followed by a colon (:)'); | ||
if ($stream->nextIf(Token::OPERATOR_TYPE, '?:')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an ambiguity when using ?:
in foo? : boolean
.
I'll update all the PHPdoc in 3.x after this PR (and then do the same in 4.x) |
b792ee5
to
a618a4f
Compare
a618a4f
to
4f8ba93
Compare
This PR was merged into the 6.4 branch. Discussion ---------- [TwigBridge] fix Twig 3.17 compatibility | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT see twigphp/Twig#4482 Commits ------- ac4ca46 fix Twig 3.17 compatibility
No description provided.