plugin-php icon indicating copy to clipboard operation
plugin-php copied to clipboard

Prettier PHP Plugin

Results 169 plugin-php issues
Sort by recently updated
recently updated
newest added

Bumps [prettier](https://github.com/prettier/prettier) from 2.1.2 to 2.7.1. Release notes Sourced from prettier's releases. 2.7.1 🔗 Changelog 2.7.0 diff 🔗 Release note 2.6.2 🔗 Changelog 2.6.1 🔗 Changelog 2.6.0 🔗 Release note...

dependencies

**Prettier 2.4.0** **PHP Plugin 0.18.4** **Input:** ```php ``` **Output:** ```php ``` **Expected behavior:** The above output does not work, it is fundamentally broken code. There should be no change: ```php...

bug
inline

This is outputting valid PHP however, for some reason I do not fully understand, it breaks short multiple match cases onto multiple lines.

I was going to help remove [the deprecated `concat` command](https://prettier.io/blog/2021/05/09/2.3.0.html#use-arrays-instead-of-concat-9733httpsgithubcomprettierprettierpull9733-by-fiskerhttpsgithubcomfisker-thorn0httpsgithubcomthorn0), but I found we are still running tests with `[email protected]`, are we going to continue to support old version? Anyway,...

**@prettier/plugin-php v0.18.8** [Playground link](https://loilo.github.io/prettier-php-playground/#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AHAAwA0IMAhgEblW14AsLAK7YoAFU648AMzYAbES2zEA5rKgBFQehhR8M+VBZhqYAGpIlWfCACsAOj4gWMCG3iyVAYXQBbH2wAFAAkA-BdBQxAOVwBjKABlGABPNWswbAgAWgAmJxBoAEdBeGgA12V-PTkFEGIRCBgytgq2KoMAXxYoCngYdBQ0eCxJUDZsGDaRTtrMMEEJvBAAHgB+YzAAHUwtqX6oNhjqAAoAAgASAA8TsfOkgEotk5Pd6APqE6Oztmvsc447k7AR5Pc7fAC85wuAG5ge0tjs9m8PpcfrcHpgQc9+sjwScAIxQ0EnJb4hiEtgAagpAKBGMxIK+JwhlxhdKe7VZW3gUlOZ126HRTxe+0Onw4qK+gsBwKefPQ6CZJw4bAgrPZ8Mw3M+-KlLiS0rp7ROMTYMEOHwAohc4oMsOcoHdaeyQO0gA) **Input:** ```php

bug

[Playground link](https://loilo.github.io/prettier-php-playground/#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AHAAwA0IMAhgEblW14AsLAK7YoAFU648AMzYAbES2zEA5rKgBFQehhR8M+VBZhqYAGpIlWfCACsAOj4gWMCG3iyVAYXQBbH2wAFAAkA-BdBQxAOVwBjKABlGABPNWswbAgAWgAmJxBoAEdBeGgA12V-PTkFEGIRCBgytgq2KoMAXxYoCngYdBQ0eCxJUDZsGDaRTtrMMEEJvBAAHgB+YzAAHUwpQUwYjEwAAil0dAAKAEpD4C3Du8OAEh8obGxmqEO7AF5Dpb+AUWQolu9wCajGH2gbAohxo8Gwh2er3edg2INIHzYYHQsnQyngAC8PicILDqB9iDEsAA3KCYRB7KCoo73QGiADcW3aWxA7SAA) Input: ```php

bug

**@prettier/plugin-php v0.18.3** [Playground link](https://loilo.github.io/prettier-php-playground/#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AHAAwA0IMAhgEblW14AsLAK7YoAFU648AMzYAbES2zEA5rKgBFQehhR8M+VBZhqYAGpIlWfCDoA6AIwgWMCG3iyVAYXQBbH2wAFAAkA-BdBQxAOVwBjKABlGABPNWswbAgAWgAmJxBoAEdBeGgA12V-PTkFEGIRCBgytgq2KoMAXxYoCngYdBQ0eCxJUDZsGDaRTtrMMEEJvBAAHgB+YzAAHUwtqUFMGIxMAAIpeAAvM45BC4AKYhgjgBJ4AEot4C2jr6OiEiP-GAxahHG4MF5HD7Hb7QgD0ACojjR4NgjsijmwjjFfD4oH84TDPtDvs8jgBSI72ACsRwAvAA+I4bECnC5XC5MpiEolPeBko4AZlpDKZLLOHK5RJJ5Op9MZUWuYqcEuhFCgMkEsgesuenKhX3aR1sR2CAQA+gBRZAAGQA3Ft2iB2kA) **Input:** ```php

bug

**@prettier/plugin-php v0.17.2** [Playground link](https://loilo.github.io/prettier-php-playground/#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AjAEwAMANCDAIYBG5VteDNgFdsUACrdceAGYcANqLbZiAczlQAikPQwo+WQqhsw1MADUkyrPhAB2AHQAWEGxgQO8OaoDC6ALZ+HAAKABJB+vKKIFzuAMZQAMowAJ7qNnQwXLhs0ACOQvDQQe4qgRGGbMSiEDDFHKUc5aIAvmxQFPAw6Cho8FhSoBzYME1QrSDEYEIjeCAAPAD8JmAAOphr0kKYsRiYAAS62AAUACQAbhwQdCx755cMAJR7wGt7e1Cx1Oh7AORzHWc9rE5ENsABeFYgH72O5Xew-SEAPjmAHoAYjXnt-vBAcDQRCoTCLhAGPCkaj0T8ANxrZogZpAA) **Input:** ```php

Not 100% sure how the best formatting for this would be, maybe some indentation for sub-sequent lines and the `=>` also on a new line or maybe a line per...

**Prettier 2.4.1** **PHP Plugin 0.17.6** **Input:** ```php use JetBrains\PhpStorm\Pure; class Test { /** * Method with an attribute. * @param string $foo * @return string */ #[Pure] public function withAttribute(string...

bug