Releases: php-type-language/parser
Releases · php-type-language/parser
1.0.1
- A little codestyle improvements
- Actualize dev dependencies
- And other unimportant improvements...
1.0.0
Release! 🚀
1.0.0-RC1
- Add support of variable comparison in conditional expressions
$var1 is $var2 ? T : U
. - Add support or conditional
>
,>=
,<
and<=
comparisons. - Add
Identifier::isVirtual()
method for non-PHP type names. - Add support of
$this
variable reference in any statements. - Complete full support of PHPStorm, Psalm and PHPStan types (Using stubs in functional tests; More than 25000 tests).
- A little grammar improcements.
See https://typelang.dev/language.html for details on all the capabilities of the parser!
Full Changelog: 1.0.0-beta7...1.0.0-RC1
1.0.0-beta7
- Remove json serialization support and simplify code.
Note: Use external serializers instead.
Full Changelog: 1.0.0-beta6...1.0.0-beta7
1.0.0-beta6
- Improve description docblocks.
- Remove
Parser::$lexer
from public scope. - Allow negative offset/limit for
Name::slice()
method. - Remove array AST normalization and simplify nodes.
- Add MOAR unit tests.
Full Changelog: 1.0.0-beta5...1.0.0-beta6
1.0.0-beta5
- Add
generics
parser configuration option to enable or disable generic types (T<X>
). - Add
union
parser configuration option to enable or disable union types (T | Y
). - Add
intersection
parser configuration option to enable or disable intersection types (T & Y
). - Add
list
parser configuration option to enable or disable square bracket list types (T[]
). - Fix
TypeVisitor
behaviour forClassConstMaskNode
.
Full Changelog: 1.0.0-beta4...1.0.0-beta5
1.0.0-beta4
- Parser no longer returns
null
Full Changelog: 1.0.0-beta3...1.0.0-beta4
1.0.0-beta3
- Optimized AST serialization
Full Changelog: 1.0.0-beta2...1.0.0-beta3
1.0.0-beta2
- Fix psalm errors
Full Changelog: 1.0.0-beta1...1.0.0-beta2
1.0.0-beta1
Fix unrecognized token errors