Skip to content

Releases: prettier/plugin-php

v0.20.0

16 Aug 19:54

Choose a tag to compare

Many thanks to @fisker for many contributions!

  • feat: upgrade to prettier 3 (#2200)
  • Simplify print() (#2212)
  • Convert tests to ES Modules (#2210)
  • Fix standalone test (#2211)
  • Update .gitattributes (#2209)

Breaking Change

This adds support for Prettier v3. It also drops compatibility with Prettier v1 and v2.

0.19.7

16 Aug 07:09

Choose a tag to compare

0.19.6

11 Jun 15:19

Choose a tag to compare

  • Add support for final class const (#2186, thanks @cseufert!)
  • chore: upgrade dependencies (#2193)

0.19.5

22 May 15:44

Choose a tag to compare

  • fix: add option for PHP 8.2 (#2179)
    Note: This allows setting phpVersion to 8.2 - Support for PHP 8.2 is still incomplete, though!

0.19.4

14 Mar 11:55

Choose a tag to compare

This release includes several internal cleanups and updates, thanks to contributions by @fisker!

  • improve doc print and update prettier dependency (#1922)
  • use clean.ignoredProperties (#2158)
  • Remove handling \r (#2157)
  • dependency updates

0.19.3

19 Jan 07:24

Choose a tag to compare

  • feat: add support for readonly classes [PHP 8.2] (#2131, thanks @genintho!)
  • chore: upgrade dependencies (#2134)

0.19.2

02 Nov 06:28

Choose a tag to compare

Deprecations

The psr2 setting for the braceStyle option has been renamed to per-cs to be more in line with future PER releases (see #2060 for details). psr2 will continue to work for now, but will be removed in a future release.

Bugfixes

  • Support expressions in new statement (#2086, thanks @cseufert!)
  • Fix for function curly brace with attrs (#2089, thanks @cseufert!)
  • Deprecated PSR-2 braceStyle and use PER-CS instead (#2070, thanks @cseufert!)

0.19.1

13 Sep 16:59

Choose a tag to compare

0.19.0

07 Sep 07:23

Choose a tag to compare

  • fix: formatting of long cases in match statement (#2054)
  • chore: upgrade dependencies (#2059)

Breaking Change:

  • Dropped support for Node v12.

0.18.9

02 Jul 19:05

Choose a tag to compare

  • feat: bump parser for PHP 8.1 explicit octal support (#2027)