History log of /PHP-Parser/test/PhpParser/ParserTest.php (Results 1 – 25 of 51)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# d57da64d 31-May-2024 Jorg Adam Sowa

Add missing void return types (#997)


# ba851243 13-Aug-2023 Nikita Popov

Replace startLexing() with tokenize()

For now Lexer::getTokens() still exists, but should probably be
removed.


# 4b497045 29-Jul-2023 Nikita Popov

Move attribute handling into parser

The Lexer now only provides the tokens to the parser, while the
parser is responsible for determining which attributes are placed
on notes. This o

Move attribute handling into parser

The Lexer now only provides the tokens to the parser, while the
parser is responsible for determining which attributes are placed
on notes. This only needs to be done when the attributes are
actually needed, rather than for all tokens.

This removes the usedAttributes lexer option (and lexer options
entirely). The attributes are now enabled unconditionally. They
have less overhead now, and the need to explicitly enable them for
some use cases (e.g. formatting-preserving printing) doesn't seem
like a good tradeoff anymore.

There are some additional changes to the Lexer interface that
should be done after this, and the docs / upgrading guide haven't
been adjusted yet.

show more ...


# 23835d20 03-Sep-2022 Nikita Popov

Rename Scalar\LNumber to Scalar\Int_


# a5033e38 29-Aug-2022 Nikita Popov

Format tests as well

The unnecessary parentheses for "new" are a bit annoying, but I
can live with it...


# 68fc1ba4 28-Aug-2022 Nikita Popov

Always use List_ node for array destructuring

Fixes #471.


# 5aae65e6 19-Jun-2022 Nikita Popov

Add Parser::getLexer() method

Not sure if this is going to stick, but for now this makes it
easier to obtain the Lexer instance when creating the parser via
ParserFactory.


# def24f22 03-Sep-2021 Nikita Popov

Add support for explicit octal literals


# 4abc5312 27-Jun-2020 Nikita Popov

Canonicalize to PHP 8 comment token format

The trailing newline is no longer part of the comment token.


# 602af906 09-Feb-2020 Nikita Popov

Add end line / file position / token position to comments


Revision tags: v4.3.0, v4.2.5, v4.2.4, v4.2.3, v4.2.2, v4.2.1
# b7e63615 19-Jan-2019 Lars Moelleken

updates via "rectorphp/rector" (#573)

- "global" -> remove unused "use" statements
- "phpunit" -> fix "@covers" comments
- "phpunit" -> replace "->will($this->returnValue()" with "->

updates via "rectorphp/rector" (#573)

- "global" -> remove unused "use" statements
- "phpunit" -> fix "@covers" comments
- "phpunit" -> replace "->will($this->returnValue()" with "->willReturn()"
- "UseTest.php" -> add missing namespace
- "composer.json" -> use "autoload-dev"
- remove -> "require_once" usage in the tests (use autoload-dev via composer.json)

-> most of the changes are done automatically by "https://github.com/rectorphp/rector"

show more ...


Revision tags: v4.2.0
# 0ef61b49 03-Jan-2019 Tomas Votruba

add float/double/real KIND support to Cast\Double node


Revision tags: v4.1.1, v4.1.0
# d638dd9b 22-Sep-2018 Tomáš Votruba

Use methods instead of annotations for expected exceptions (#533)


# eebaa946 22-Sep-2018 Nikita Popov

Flexible doc strings: Fix some issues, add more tests


Revision tags: v4.0.4, v4.0.3, v4.0.2, v4.0.1, v4.0.0, v3.1.5, v4.0.0beta1, v3.1.4
# edafeb85 10-Jan-2018 Gabriel Caruso

[CS] Order uses A -> Z


# c7ada124 13-Jan-2018 Nikita Popov

[CS] Use ::class notation instead of string

Conflicts:
test/PhpParser/ParserFactoryTest.php
test/PhpParser/ParserTest.php


# 7f72c841 10-Jan-2018 Gabriel Caruso

[CS] Open class brackets in new line


Revision tags: v4.0.0alpha3, v3.1.3, v4.0.0alpha2
# 47c973b3 04-Nov-2017 Nikita Popov

Store start token position in comments


Revision tags: v3.1.2
# b58157f0 02-Nov-2017 TomasVotruba

add strict_types to tests + fix explode type


Revision tags: v4.0.0alpha1
# df334eac 26-Sep-2017 Nikita Popov

Add back commented test

We're not testing HHVM anymore, and I've already fixed this bug
upstream.


# 5a9fbca5 26-Sep-2017 Nikita Popov

Add attribute for namespace kinds (#417)

One of KIND_SEMICOLON or KIND_BRACED.


Revision tags: v3.1.1
# af128074 13-Aug-2017 TomasVotruba

[cs] apply same to tests


Revision tags: v3.1.0, v3.0.6
# a32e3797 28-Apr-2017 Nikita Popov

Generate PHP 7 type annotations


# 3c44785e 27-Apr-2017 Ekin

Bump phpunit version (#381)


Revision tags: v3.0.5, v3.0.4, v3.0.3
# 1bfbd7bc 19-Jan-2017 Nikita Popov

Make useExpressionStatement only supported mode


123