-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Comparing changes
Open a pull request
base repository: nikic/PHP-Parser
base: v4.12.0
head repository: nikic/PHP-Parser
compare: v4.13.0
- 14 commits
- 47 files changed
- 4 contributors
Commits on Jul 21, 2021
-
Simplify BuilderHelpers::normalizeName() implementation
In order to get rid of the flag in `BuilderHelpers::normalizeNameCommon()` I have moved all the logic related to the normalization of the name to the `BuilderHelpers::normalizeName()` method and expr-related stuff to the `BuilderHelpers::normalizeNameOrExpr()` method which later calls the basic `normalizeName()` as well
Configuration menu - View commit details
-
Copy full SHA for 5a43015 - Browse repository at this point
Copy the full SHA 5a43015View commit details
Commits on Aug 8, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 9aebf37 - Browse repository at this point
Copy the full SHA 9aebf37View commit details
Commits on Sep 2, 2021
-
Introduce ComplexType base class
With the upcoming addition of intersection types, a type can be Identifier|Name|NullableType|UnionType|IntersectionType, which is quite the mouthful. Give NullableType and UnionType a common base class ComplexType, which does not have any behavior, but allows to write these types (and check them in instanceof) more easily.
Configuration menu - View commit details
-
Copy full SHA for 0483391 - Browse repository at this point
Copy the full SHA 0483391View commit details
Commits on Sep 3, 2021
-
Configuration menu - View commit details
-
Copy full SHA for ace6c67 - Browse repository at this point
Copy the full SHA ace6c67View commit details -
Add test for new in initializer
This already works because we don't validate initializer contents, everything is accepted from a parser perspective.
Configuration menu - View commit details
-
Copy full SHA for cfeb195 - Browse repository at this point
Copy the full SHA cfeb195View commit details -
Configuration menu - View commit details
-
Copy full SHA for def24f2 - Browse repository at this point
Copy the full SHA def24f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2c645f - Browse repository at this point
Copy the full SHA d2c645fView commit details -
Add support for first-class callables
I'm somewhat unsure about the AST structure here. VariadicPlaceholder is not a general expression. Maybe Arg->expr should be Expr|VariadicPlaceholder? Or possibly the call arguments should be an array of Arg|VariadicPlaceholder?
Configuration menu - View commit details
-
Copy full SHA for 13549aa - Browse repository at this point
Copy the full SHA 13549aaView commit details
Commits on Sep 12, 2021
-
Print comma before comments for new array item (#805)
Print comma before rather than after comments. Also switch to multiline mode if inserting an item with comments. Fixes #804.
Configuration menu - View commit details
-
Copy full SHA for 632ead3 - Browse repository at this point
Copy the full SHA 632ead3View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5234ea - Browse repository at this point
Copy the full SHA b5234eaView commit details -
Don't make VariadicPlaceholder an expression
And don't store it in an Arg.
Configuration menu - View commit details
-
Copy full SHA for 0850199 - Browse repository at this point
Copy the full SHA 0850199View commit details -
This provides a helper to determine whether a call is a first-class callable, and a way to strip the args type to Arg[] if it isn't.
1Configuration menu - View commit details
-
Copy full SHA for a45fb2a - Browse repository at this point
Copy the full SHA a45fb2aView commit details
Commits on Sep 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 0a20979 - Browse repository at this point
Copy the full SHA 0a20979View commit details
Commits on Sep 20, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 50953a2 - Browse repository at this point
Copy the full SHA 50953a2View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v4.12.0...v4.13.0