Skip to content

Commit 447a020

Browse files
committed
Release PHP-Parser 5.4.0
1 parent 45f70ed commit 447a020

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
Version 5.4.0 (2024-12-30)
2+
--------------------------
3+
4+
### Added
5+
6+
* Added `Property::isAbstract()` and `Property::isFinal()` methods.
7+
* Added `PropertyHook::isFinal()` method.
8+
* Emit an error if property hook is used on declaration with multiple properties.
9+
10+
### Fixed
11+
12+
* Make legacy class aliases compatible with classmap-authoritative autoloader.
13+
* `Param::isPromoted()` and `Param::isPublic()` now returns true for parameters that have property
14+
hooks but no explicit visibility modifier.
15+
* `PropertyHook::getStmts()` now correctly desugars short `set` hooks. `set => $value` will be
16+
expanded to `set { $this->propertyName = $value; }`. This requires the `propertyName` attribute
17+
on the hook to be set, which is now also set by the parser. If the attribute is not set,
18+
`getStmts()` will throw an error for short set hooks, as it is not possible to produce a correct
19+
desugaring.
20+
121
Version 5.3.1 (2024-10-08)
222
--------------------------
323

0 commit comments

Comments
 (0)