Skip to content

Releases: glayzzle/php-parser

v3.5.1

29 Mar 19:56

Choose a tag to compare

Bugfixes

  • fix: throw SyntaxError on leading separator in read_list by @jorgsowa in #1223
  • fix: throw SyntaxError for invalid modifiers on class constants by @jorgsowa in #1224
  • fix: arrow function version guard never fired due to operator precedence by @jorgsowa in #1229
  • fix: trait alias with no visibility and no alias now raises an error by @jorgsowa in #1230
  • fix: pass attrs to trait declarations and support attributes on enum cases by @jorgsowa in #1231
  • fix: raise SyntaxError for final class constants before PHP 8.1 by @jorgsowa in #1234

Other

v3.5.0

22 Mar 17:17

Choose a tag to compare

What's Changed

This is a big release with many awesome contributions from @jorgsowa 💯

Features

Fixes

Misc

Full Changelog: v3.4.0...v3.5.0

v3.4.0

21 Feb 12:04

Choose a tag to compare

v3.3.0

18 Feb 16:55

Choose a tag to compare

v3.2.5

10 Jul 20:06

Choose a tag to compare

  • fix: parse new without parens as call instead of bin (#1162)
  • chore: add object-shorthand eslint rule (#1159)

v3.2.4

27 Jun 22:15

Choose a tag to compare

  • fix: valid_after_heredoc_73 missing the concatenation operator (#1156, thanks @Spice-King!)
  • fix: 🐛 syntax error on multiline class constant with comment (#1152, thanks @shufo!)
  • chore: bump dependencies (#1158)
  • chore(ci): bump actions/cache (#1157)

3.2.3

17 Apr 07:31

Choose a tag to compare

3.2.2

31 Dec 07:32

Choose a tag to compare

  • PHP 8.3 parser support untyped Class constant (#1147, thanks @genintho!)
  • Consistent returns for read_variable_declaration (#1141, thanks @genintho!)
  • chore: bump default version to 8.3 (#1150)

3.2.1

10 Nov 17:02

Choose a tag to compare

  • chore: update dependencies (#1139)

3.2.0

06 Nov 22:55

Choose a tag to compare

  • feat: add support for PHP 8.3 typed class constants (#1136, thanks @Kenneth-Sills!)
  • Fix ?-> with succeeding PHP keyword (#1124, thanks @sxxov!)
  • A few unimportant code-style consistency changes (#1137, thanks @mreiden!)
  • chore(CI): bump node version (#1116)