Skip to content

Releases: prettier/plugin-php

v0.25.0

29 Mar 19:51

Choose a tag to compare

Features

  • feat: support php-parser 3.4.0 (pipe operator and readonly anonymous classes) by @jorgsowa in #2459

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

16 Jul 08:09

Choose a tag to compare

  • 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

13 Jul 18:45

Choose a tag to compare

Breaking Changes

  • chore!: upgrade dependencies, drop support for node 16 (#2431)

Features

Chores

Docs

v0.22.4

20 Jan 22:46

Choose a tag to compare

  • fix: parameter comment function attribute removal (#2412, thanks @LordSalmon!)
  • chore(ci): bump codecov action

v0.22.3

19 Jan 10:42

Choose a tag to compare

  • chore(deps): πŸ€– bump php-parser from 3.1.5 to 3.2.1 and add test for reserved keyword after null-safe operator (#2411, thanks @shufo!)

v0.22.2

03 Feb 20:53

Choose a tag to compare

What's Changed

  • Make chain breaking as similar to original prettier (js) as much as possible by @eldair in #2320
  • fix: πŸ› singleQuote option does not work on format API by @shufo in #2303
  • chore: upgrade dependencies by @czosel in #2321

New Contributors

Full Changelog: v0.22.1...v0.22.2

v0.22.1

16 Dec 19:05

Choose a tag to compare

v0.22.0

16 Dec 18:56

Choose a tag to compare

  • feat: make format compatible with "PER Coding Style 2.0" (#2269, thanks @ferchoz)
  • fix: make /standalone entry work with require() (#2247, thanks @shufo)
  • chore: upgrade deps (#2289)

0.21.0

15 Oct 12:08

Choose a tag to compare

Breaking changes

This release drops support for node v14.

v0.20.1

18 Aug 20:07

Choose a tag to compare

This package is now pure ESM.