Skip to content

Releases: xp-framework/ast

9.2.6: Namespace import fix

19 Feb 13:03
Compare
Choose a tag to compare
  • Fixed relative type names with namespace imports - @thekid

9.2.5: Exponent notation fix

19 Feb 10:14
Compare
Choose a tag to compare

9.2.4: Generic types fix

12 Feb 09:19
Compare
Choose a tag to compare
  • Merged PR #41: Migrate to new testing library - @thekid
  • Fixed lang.ast.nodes.TypeDeclaration::declaration() for generics
    (@thekid)
  • Fixed lang.ast.types.IsGeneric::literal() not returning a fully
    qualified type name
    (@thekid)
  • Fixed endless loop with syntax errors in new - @thekid

9.2.3: Language cloning fix

05 Feb 10:46
Compare
Choose a tag to compare
  • Fixed cloning of lang.ast.Language instances - @thekid

9.2.2: Line numbers fix

18 Dec 21:42
Compare
Choose a tag to compare
  • Fixed line numbers for match conditions, case labels and catch
    statements
    (@thekid)

9.2.1: Type casting fix

04 Dec 19:10
Compare
Choose a tag to compare
  • Fixed type parsing in type casts:
    • Arrays, maps and generics with nullables, e.g. (array<?int>)$v
    • Intersection and union types, e.g. (int|string)$v.
      (@thekid)

9.2.0: Omit expressions in destructuring

12 Nov 13:55
Compare
Choose a tag to compare
  • Added support for omitting expressions in destructuring assignments,
    e.g. list($a, , $b)= $expr or [, $a]= $expr.
    (@thekid)

9.1.0: Generic wildcards

06 Nov 22:56
Compare
Choose a tag to compare
  • Add support for generic wildcards such as Filter<?>, resolving
    ambiguity with nullable types
    (@thekid)
  • Resolved ambiguity between short open tag and nullables in generics,
    e.g. Filter<?int>.
    (@thekid)

9.0.0. Type refactoring

06 Nov 22:56
Compare
Choose a tag to compare
  • Merged PR #40: Create generic member in lang.ast.nodes.Signature
    (@thekid)
  • Merged PR #39: Refactor type declaration, parents, interfaces to
    lang.ast.Type instances
    (@thekid)

8.2.0: PHP 8.2 types

03 Sep 10:48
Compare
Choose a tag to compare