X Tutup
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nikic/PHP-Parser
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.12.0
Choose a base ref
...
head repository: nikic/PHP-Parser
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.13.0
Choose a head ref
  • 14 commits
  • 47 files changed
  • 4 contributors

Commits on Jul 21, 2021

  1. 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
    simivar authored and nikic committed Jul 21, 2021
    Configuration menu
    Copy the full SHA
    5a43015 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2021

  1. Allow multiple modifiers for property promotion

    Fixes issue #800.
    nikic committed Aug 8, 2021
    Configuration menu
    Copy the full SHA
    9aebf37 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2021

  1. 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.
    nikic committed Sep 2, 2021
    Configuration menu
    Copy the full SHA
    0483391 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2021

  1. Configuration menu
    Copy the full SHA
    ace6c67 View commit details
    Browse the repository at this point in the history
  2. Add test for new in initializer

    This already works because we don't validate initializer contents,
    everything is accepted from a parser perspective.
    nikic committed Sep 3, 2021
    Configuration menu
    Copy the full SHA
    cfeb195 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    def24f2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d2c645f View commit details
    Browse the repository at this point in the history
  5. 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?
    nikic committed Sep 3, 2021
    Configuration menu
    Copy the full SHA
    13549aa View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2021

  1. 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.
    shalvah authored Sep 12, 2021
    Configuration menu
    Copy the full SHA
    632ead3 View commit details
    Browse the repository at this point in the history
  2. Tweak coding style

    nikic committed Sep 12, 2021
    Configuration menu
    Copy the full SHA
    b5234ea View commit details
    Browse the repository at this point in the history
  3. Don't make VariadicPlaceholder an expression

    And don't store it in an Arg.
    nikic committed Sep 12, 2021
    Configuration menu
    Copy the full SHA
    0850199 View commit details
    Browse the repository at this point in the history
  4. Add CallLike parent class

    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.
    nikic committed Sep 12, 2021
    1 Configuration menu
    Copy the full SHA
    a45fb2a View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2021

  1. Unified builder methods for setting types

    kukulich authored and nikic committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    0a20979 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2021

  1. Release PHP-Parser 4.13.0

    nikic committed Sep 20, 2021
    Configuration menu
    Copy the full SHA
    50953a2 View commit details
    Browse the repository at this point in the history
Loading
X Tutup