Skip to content

Releases: php-type-language/parser

1.0.2

11 Sep 01:06

Choose a tag to compare

  • Bump parser runtime version (phplrt 3.6 -> 3.7)

1.0.1

01 Jul 08:48

Choose a tag to compare

  • A little codestyle improvements
  • Actualize dev dependencies
  • And other unimportant improvements...

1.0.0

15 Apr 19:23

Choose a tag to compare

Release! 🚀

1.0.0-RC1

12 Apr 19:57

Choose a tag to compare

  • 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

07 Apr 16:37

Choose a tag to compare

  • 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

06 Apr 10:17

Choose a tag to compare

  • 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

03 Apr 01:23

Choose a tag to compare

  • 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 for ClassConstMaskNode.

Full Changelog: 1.0.0-beta4...1.0.0-beta5

1.0.0-beta4

02 Apr 20:40

Choose a tag to compare

  • Parser no longer returns null

Full Changelog: 1.0.0-beta3...1.0.0-beta4

1.0.0-beta3

02 Apr 18:06

Choose a tag to compare

  • Optimized AST serialization

Full Changelog: 1.0.0-beta2...1.0.0-beta3

1.0.0-beta2

27 Mar 20:26

Choose a tag to compare

  • Fix psalm errors

Full Changelog: 1.0.0-beta1...1.0.0-beta2