Releases: glayzzle/php-parser
Releases · glayzzle/php-parser
v3.5.1
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
What's Changed
This is a big release with many awesome contributions from @jorgsowa 💯
Features
Fixes
- fix: invalid properties annotations in ast classes by @jorgsowa in #1186
- fix: CVE-2024-57071 by @jorgsowa in #1194
- fix: resolve property chains in new expression class name (#1177) by @jorgsowa in #1196
- fix: support readonly modifier before visibility in class properties by @jorgsowa in #1197
- fix: prevent crash when suppressErrors and withPositions are both enabled by @jorgsowa in #1195
- fix: new line in heredoc by @jorgsowa in #1193
- fix: property lookup by reference by @jorgsowa in #1202
- fix: precedence of instanceof was wrong by @jorgsowa in #1207
- fix: invalid location for union types by @jorgsowa in #1208
- fix: semicolon-style namespaces incorrectly nested instead of siblings by @jorgsowa in #1211
- fix: attach doc comments to inner nodes in short-form if/elseif/else by @jorgsowa in #1209
- fix: nullsafe operator location by @jorgsowa in #1213
- fix: class constant location by @jorgsowa in #1214
- fix: multiple static lookup by @jorgsowa in #1215
- fix: dnf types by @jorgsowa in #1216
- fix: attribute location by @jorgsowa in #1217
- fix: noop location by @jorgsowa in #1218
Misc
- build: update dependencies by @jorgsowa in #1187
- test: inlined comments between parameters by @jorgsowa in #1188
- update yarn by @jorgsowa in #1200
- build(deps-dev): bump webpack from 5.105.2 to 5.105.4 by @dependabot[bot] in #1191
- test: ignore eslint warnings about assertions by @jorgsowa in #1203
- chore: improve tests without assertions by @jorgsowa in #1201
- test: add regression coverage for static property with nullable type by @jorgsowa in #1210
- build(deps-dev): bump @babel/preset-env from 7.29.0 to 7.29.2 by @dependabot[bot] in #1205
- build(deps-dev): bump webpack-cli from 6.0.1 to 7.0.2 by @dependabot[bot] in #1212
- chore: fix tests on main by @czosel in #1221
Full Changelog: v3.4.0...v3.5.0
v3.4.0
- feat: dynamic const fetch on class/enum (jorgsowa#8, thanks @jorgsowa!)
- feat: runtime class static keyword (#1172, thanks @jorgsowa!)
- fix: nullsafe operator parenthesized (jorgsowa#9, jorgsowa#10, jorgsowa#11, thanks @jorgsowa!)
- chore: update eslint to v10 and fix linting errors (#1174, thanks @cseufert!)
- ci: update GH actions (jorgsowa#21, thanks @jorgsowa!)