plugin-php

Prettier PHP Plugin

MIT License

Stars
1.7K
Committers
51

Bot releases are hidden (Show)

plugin-php - v0.22.2 Latest Release

Published by czosel 9 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/prettier/plugin-php/compare/v0.22.1...v0.22.2

plugin-php - v0.22.1

Published by czosel 10 months ago

  • fix the entry (#2290, thanks @fisker)
plugin-php - v0.22.0

Published by czosel 10 months ago

  • 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)
plugin-php - 0.21.0

Published by czosel about 1 year ago

  • fix(match): Indent match conditions (#2258, thanks @claytonrcarter!)
  • chore!: upgrade dependencies (#2262)

Breaking changes

This release drops support for node v14.

plugin-php - v0.20.1

Published by czosel about 1 year ago

This package is now pure ESM.

  • vscode documentation update (#2194, thanks @WazzaJB!)
  • Use AstPath getters (#2214, thanks @fisker!)
  • Migrate to ESM (#2213, thanks @fisker!)
plugin-php - v0.20.0

Published by czosel about 1 year ago

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.

plugin-php - 0.19.7

Published by czosel about 1 year ago

  • fix(match): Support empty lines and comments in match expressions (#1956, #2201 - thanks @claytonrcarter!)
plugin-php - 0.19.6

Published by czosel over 1 year ago

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

Published by czosel over 1 year ago

  • 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!
plugin-php - 0.19.4

Published by czosel over 1 year ago

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
plugin-php - 0.19.3

Published by czosel over 1 year ago

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

Published by czosel almost 2 years ago

Deprecations

The psr2 setting for the braceStyle option has been renamed to per-cs to be more in line with future PER releases (see https://github.com/prettier/plugin-php/issues/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!)
plugin-php - 0.19.1

Published by czosel about 2 years ago

  • fix for inline closure (#2062, thanks @cseufert!)
  • chore: upgrade dependencies (#2068)
plugin-php - 0.19.0

Published by czosel about 2 years ago

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

Breaking Change:

  • Dropped support for Node v12.
plugin-php - 0.18.9

Published by czosel over 2 years ago

  • feat: bump parser for PHP 8.1 explicit octal support (#2027)
plugin-php - 0.18.8

Published by czosel over 2 years ago

  • fix: calls with multiple array spreads (#2010)
  • chore: upgrade dependencies (#2011)
plugin-php - 0.18.7

Published by czosel over 2 years ago

  • fix: enum as identifier (#1995)
  • fix: improve formatting for match cases (#1994, thanks @AndreasA!)
plugin-php - 0.18.6

Published by czosel over 2 years ago

  • feat: add PHP 8.1 first class callable support (#1991)
plugin-php - 0.18.5

Published by czosel over 2 years ago

  • fix: bump parser (#1987)
plugin-php - 0.18.4

Published by czosel over 2 years ago

  • fix: added trailing commas to match body when enabled (#1949, thanks @cseufert!)