History log of /PHP-Parser/ (Results 351 – 375 of 1692)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
b5234eac12-Sep-2021 Nikita Popov

Tweak coding style

632ead3a12-Sep-2021 Shalvah

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.

13549aa703-Sep-2021 Nikita Popov

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|VariadicPlaceh

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?

show more ...

d2c645f103-Sep-2021 Nikita Popov

Adjust token count in octal emulator

def24f2203-Sep-2021 Nikita Popov

Add support for explicit octal literals

cfeb195203-Sep-2021 Nikita Popov

Add test for new in initializer

This already works because we don't validate initializer contents,
everything is accepted from a parser perspective.

ace6c67a02-Sep-2021 Nikita Popov

Add support for intersection types

0483391a02-Sep-2021 Nikita Popov

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.

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.

show more ...

9aebf37708-Aug-2021 Nikita Popov

Allow multiple modifiers for property promotion

Fixes issue #800.

5a43015418-Jun-2021 simivar

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

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

show more ...

6608f01621-Jul-2021 Nikita Popov

Release PHP-Parser 4.12.0

55c4269221-Jul-2021 Máté Kocsis

Add support for new PHP 8.1 modifiers (#796)

Implement support for readonly properties (https://wiki.php.net/rfc/readonly_properties_v2) and
final class contstants (https://wiki.php.net/

Add support for new PHP 8.1 modifiers (#796)

Implement support for readonly properties (https://wiki.php.net/rfc/readonly_properties_v2) and
final class contstants (https://wiki.php.net/rfc/final_class_const).

show more ...

c4304c7621-Jul-2021 Nikita Popov

Try to pass --ignore-platform-req=php on 8.1 only

b099e8fc21-Jul-2021 Nikita Popov

Pass --ignore-platform-req=php

acf16edc21-Jul-2021 Nikita Popov

Add PHP 8.1 to GH actions

a8b5ed4321-Jul-2021 Nikita Popov

Fix JSON encoding test on PHP 8.1

Duplicate the test expectation for a different order.

c758510a09-Jul-2021 Nikita Popov

Add support for PHP 8.1

With the introduction of intersection types, PHP now lexes the
token '&' either as T_AMPERSAND_(NOT_)FOLLOWED_BY_VAR_OR_VARARG.
This completely breaks parsing

Add support for PHP 8.1

With the introduction of intersection types, PHP now lexes the
token '&' either as T_AMPERSAND_(NOT_)FOLLOWED_BY_VAR_OR_VARARG.
This completely breaks parsing of any code containing '&'.

Fix this by canonicalizing to the new token format (unconditionally,
independent of emulation) and adjusting the parser to use the two
new tokens.

This doesn't add actual support for intersection types yet.

show more ...

feed91cf09-Jul-2021 Nikita Popov

Avoid ctype_alnum() on integer

This is deprecated in PHP 8.1

fe14cf3603-Jul-2021 Nikita Popov

Release PHP-Parser 4.11.0

3fb7352003-Jul-2021 Bob Weinand

Add handling for Enum(Case)s in NameResolver

c35cc4b218-Jun-2021 simivar

Add support for "never" type in the BuilderHelpers::normalizeType()

e69ebbbf03-May-2021 Rod Elias

chore: use the word Xdebug instead of XDebug

0b258d9a17-Jun-2021 simivar

Add missing tests for methods of BuilderHelpers

2d193bb016-Jun-2021 simivar

Add attributes to integration Builder test

49e9951f16-Jun-2021 Krystian Marcisz

Add addAttribute() method to Builders with normalizer (#782)

Adds addAttribute() method to Builders of all nodes supporting attributes with BuilderHelpers::normalizeAttribute() usage inside

Add addAttribute() method to Builders with normalizer (#782)

Adds addAttribute() method to Builders of all nodes supporting attributes with BuilderHelpers::normalizeAttribute() usage inside so we can pass both Node\Attribute and Node\AttributeGroup instances.

show more ...

1...<<11121314151617181920>>...68