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

I would suggest that the Readme.md would specify if this module follow any standard... Because I did follow up this plugin blindly and the question arise afterward :-) Thanks in...

Not sure which cases these include exactly but some cases result in pretter stopping with an error: ```sh Error: Comment "// abc" was not printed. Please report this error! ```...

Various comments inside attributes are moved to really weird places instead of staying where they were. The example below is not the only one where something like this happens. There...

Since 0.19.2 it seems that prettier removes attributes, if an argument also has attributes that are more complex. See examples below. Especially relevant with PHP 8.2 setting and even newer...

**@prettier/plugin-php v0.21.0** [Playground link](https://loilo.github.io/prettier-php-playground/#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AHAAwA0IMAhgEblW14AsLAK7YoAFU648MCIKgtsxAOYAbKAEVB6GFHzTZLMNTAA1JAqz4QAdgB0fEC2lt4ypQGF0AW09sACgAlfXRk5EA4INgBjKABlGABPVUsARhgOXBZoAEdBeGhfCMUffAAzNmURFmIRCBgCtiK2UvKRAF8WKAp4GHQUNHgsSVA2bBhmiqh2kGIwQTG8EAAeAH5DMAAdTAASNggIAAIAXn3diPiACgBKAG5N863oSMEIBQA3KCP9ksFMSIxMfbnABkOwgikEnigJEum2Am32CP2KnQHHK+weUCeL3g71umHhiPgJUBkXQPxg9124Mh0P2i32yQYMIBiLhLMRiNB1KhMAA2gBdT4AchK6HQQrxHI5GKxbyglLBEJ5NwJCNam1alwVEBVmCIJAA+hBtbrNpsQK0gA) I took the code sample from https://stackoverflow.com/a/63649677/577052 **Input:** This works in PHP 8.2 ```php

**@prettier/plugin-php v0.21.0** [Playground link](https://loilo.github.io/prettier-php-playground/#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AHAAwA0IMAhgEblW14AsLAK7YoAFU648AMzYAbES2zEA5rKgBFQehhR8M+VBZhqYAGpIlWfCDoA6AIwgWMCG3iyVAYXQBbH2wAFAAkA-BdBQxAOVwBjKABlGABPNWswJABaGNwWaABHQXhoANdlfz05BRBiEQgYErYytgqDAF8WKAp4GHQUNHgsSVA2bBgWkXbqzDBBMbwQAB4AfmMwAB1MDZjZEewAAk9hHp8AUQAPOP6sPagznUwKfbW1gCVBEngfKHPLjEw94CtDZbHbYfYAQUw2moSE8oP2wA2e2RexmHA8MT2UneMT+ewA+viYoNwriABRojF7YgwPYAEjOTFRgnR8ExNPpSQAlACgZg+SBWkA) **Input:** ```php

so I installed this plugin globally with: `npm install --global prettier @prettier/plugin-php` but when I run `prettier path/to/file.php --write` i get this error: [error] No files matching the pattern were...

It appears the PHP array short hand is being forced for version 5.4 and above? const useShortForm = (node.kind === "array" && isMinVersion(options.phpVersion, "5.4")) || (node.kind === "list" && node.shortForm...

**A nested static reference is not working.** **@prettier/plugin-php v0.19.5** [Playground link](https://loilo.github.io/prettier-php-playground/#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AHAAwA0IMAhgEblW14BMLAK7YoAFU648AMzYAbES2zEA5rKgBFQehhR8M+VBZhqYAGpIlWfCDoA6AIwgWMCG3iyVAYXQBbH2wAFAAkA-BdBQxAOVwBjKABlGABPNWswJABaGNwWaABHQXhoANdlfz05BRBiEQgYErYytgqDAF8WKAp4GHQUNHgsSVA2bBgWkXbqzDBBMbwQAB4AfmMwAB1MDYASNjAwAAIAXn3RtgQYvDwAQQCAy+VYAEkcdkw4gAoASgBuDY2QVpAA) **Input:** ```php

**@prettier/plugin-php v0.19.4** [Playground link](https://loilo.github.io/prettier-php-playground/#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AHAAwA0IMAhgEblW14AsLAK7YoAFU648MCIKgtsxAOYAbKAEVB6GFHwAzNspEsw1MADUkCrPhAB2AHQBmEC2lt4ypQGF0AW19sAAoAEoH40rIsHBBsAMZQAMowAJ6qNmDYEAC0AEwuINAAjoLw0IExigF6BkYgxCIQMOVslWzVhlAAvixQFPAw6Cho8FiSoGzYMO0i3XWYYIJTeCAAPAD8JmAAOpg7AMQABAq+YKpHySRsAB77B8gA0jtbIAAkuujoANovxBRQVwB9ABubAgAF1ngBuJ6YQ7HU5Qc6XK4HADu-WoB3+p3gsX6B0wbF8iI46EEmAooMQ2DRGIOsUEEGUyQO0TiAGtYNhbgA5LR3e54A6QWAIJBHVEGZToVE0miIijoZTKUFHeCKTAHXQQPwHH4U-7A0FPV7Ad5ffV-QEg8GdKEww6xPwIlEACgZTOSAEokewbrCBSbgG8Pt9foabWC7SBoZgQJ0gA) **Input:** ```php

bug