Releases: prettier/plugin-php
Releases Β· prettier/plugin-php
v0.25.0
Features
Bugfixes
- fix: detect >> and << in isBitwiseOperator by @jorgsowa in #2460
- fix: correct "silence" typo to "silent" by @jorgsowa in #2464
- fix: correct parts.unshift() to parts.shift() in isSimpleCallArgument by @jorgsowa in #2461
- fix: don't parenthesize assign inside static variable declaration by @jorgsowa in #2463
- fix: yield from parenthesis by @jorgsowa in #2466
Other
v0.24.0
- feat!: bump default formatting version to composer version with fallback to latest supported PHP (#2434, thanks @cseufert!)
Breaking Change
The plugin now infers the phpVersion option from composer.json. If no such file is found, the default fallback is changed from 7.0 to the latest supported version, currently 8.4. See the new section in the README for details.
v0.23.0
Breaking Changes
- chore!: upgrade dependencies, drop support for node 16 (#2431)
Features
- feat: format new without parenthesis in PHP 8.4 (#2422, thanks @claytonrcarter!)
- feat: add support for PHP 8.3 typed class constants (#2433, thanks @mreiden!)
- feat: add typescript support (#2407, thanks @ntnyq!)
Chores
- Update
linguist-languagesto v8 (#2428, thanks @fisker!) - Run tests on Node.js v22 & v24 (#2429, thanks @fisker!)
- fix(dosc): edited the build badge (#2425, thanks @Ocheretovich!)