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

Hello! The blade templating engine in laravel is not supported at the moment (it seems). Are there any plans to add this in the future? Is this hard to do...

enhancement
discussion

**@prettier/plugin-php v0.17.6** [Playground link](https://loilo.github.io/prettier-php-playground/#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AHAAwA0IMAhgEblW14AsLAK7YoAFU648AMzYAbES2zEA5rKgBFQehhR8M+VBZhqYAGpIlWfCACsAOj4gWMCG3iyVAYXQBbH2wAFAAkA-BdBQxAOVwBjKABlGABPNWswbAgAWgAmJxBoAEdBeGgA12V-PTkFEGIRCBgytgq2KoMAXxYoCngYdBQ0eCxJUDZsGDaRTtrMMEEJvBAAHgB+YzAAHUwt6BhBCEwAAgBtLcPDgHoLw9FkABFkPEO7F62AXQBuLZ3YfaPTo6Xa63B5PF52M6HADkUnQ6ChhwAvAA+aEcNgQKFMd5fbaYXZ-E6QmFwhEotEYrE4rYgdpAA) **Input:** ```php

The comment of the last argument gets replaced. This also applies to `/* block comments */`. **@prettier/plugin-php v0.16.3** [Playground link](https://loilo.github.io/prettier-php-playground/#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AHAAwA0IMAhgEblW14AsLAK7YoAFU648AMzYAbES2zEA5rKgBFQehhR8M+VBZhqYAGpIlWfCACsAOj4gWMCG3iyVAYXQBbH2wAFAAkA-BdBQxAOVwBjKABlGABPNWswbAgAWgAmJxBoAEdBeGgA12V-PTkFEGIRCBgytgq2KoMAXxYoCngYdBQ0eCxJUDZsGDaRTtrMMEEJvBAAHgB+YzAAHUwtmNkx7AACAFkkzz3sQ+Atg4O5jg8Yg-G2BEepQUwYjEwDqQhfAAU1xuB2IMAOABIAG5yCIARiYBwA9EiDjFfD4oCQDgB3foAa2wwJuYMhMNkEWyyNR6L8WPBylghx86Ch3QOFHQOO2PxBAEoDldeTdge0tmLhQctlsQO0gA) **Input:** ```php

bug
comments

**@prettier/plugin-php v0.11.2** [Playground link](https://loilo.github.io/prettier-php-playground/#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AHAAwA0IMAhgEblW14AsLAK7YoAFU648AMzYAbES2zEA5rKgBFQehhR8M+VBYwIbeLJUBhdAFtrbAAoAJe-hCYsulhxMBjKAGUYAE81VzBsCABaACYQFmgAR0F4aHsTZTs9OQUQYhEIGDS2DLYsgwBfFigKeBh0FDR4LElQNmwYMpFK3MwwQQ68EAAeAH4wajAAHUxpzDZrKGwwNj8AAgBBMDAAbmnpn1k27FWLNgh0YShZVagADx1MCmOAWXQKK+ngadWf1chtKA+HQUVYAEnYHDUqwAvKsAOQ+M4XETyOG7GaYX6rAD02L+0DgiCi8GU7mg31+-x0QOqYKkZkOkKgMNWAG0KVifnD2mwYMIAPqUOFMDmcuHBMBQYWirFw+B2ZRQfnLGjSzGcrlyGD8nT3NUarmCCCyfUGuEcKDKYj8ii82DyqUi9UauFQR42u0IBamn4AXXRoqpgOBYMR7WOsPZzrFFqtmA9Oi9UphAD54bbEw6fWK3RQE-bvan056s06sf7puVpiBykA) **Input:** ```php

bug
upstream
ignore

Having any text characters before the opening `` block to wrap. **@prettier/plugin-php v0.17.4** [Playground link](https://loilo.github.io/prettier-php-playground/#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AHAAwA0IMAhgEblW14AsLAK7YoAFU648AMzYAbES2zEA5rKgBFQehhR8M+VBZhqYAGpIlWfCACsAOj4gWMCG3iyVAYXQBbH2wAFAAkA-BdBQxAOVwBjKABlGABPNWswbAgAWgAmJxBoAEdBeGgA12V-PTkFEGIRCBgytgq2KoMAXxYoCngYdBQ0eCxJUDZsGDaRTtrMMEEJvBAAHUwAHgB+YzAVgBI2AAIAXn2ARgBuFfgpfYAKcKgASjx99YA+FZWdAA8YD7XNkz7KCYHpSM4vd6YEDtIA) **Input:** ```php text ``` **Output:** ```php text ``` **Expected** ```php text ``` As a workaround,...

> **Disclaimer:** I am aware that it's not make-or-break for Prettier to adhere to PSR-12. > > However, now that it is officially accepted as a standard, we should discuss...

psr compat
discussion

Ref: http://php.net/manual/en/reserved.classes.php In php allowed use any case of build-in class: ```php $exception = new Exception('Message'); $exception = new EXCEPTION('Message'); $exception = new eXcEpTiOn('Message'); ``` Always return `exception` build-in class....

enhancement
needs investigation
discussion

When running the plugin on a Wordpress template file with some commented lines, behaviour is not as expected. In this example, the comment line (line 22 in the playground) `//...

bug
inline
comments

The obvious problem is that the multi-line comment is being duplicated and jumping outside the PHP block. But it's weirder, variations are below the main report example. **@prettier/plugin-php v0.11.2** [Playground...

bug
inline
comments