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

**Prettier 1.14.3** **PHP Plugin 0.9.0** **Input:** ```php return 1 == $number % 10 && 11 != $number % 100 ? 0 : ($number % 10 >= 2 && $number %...

enhancement
ugly

**@prettier/plugin-php v0.14.3** [Playground link](https://loilo.github.io/prettier-php-playground/#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AjAEwAMANCDAIYBG5VteAFjYBXbFAAq3XHgBmHADZi22YgHN5UAIrD0MKPhgRhUNmGpgAakhVZ8IAOwA6ASDaGO8eWoDC6ALZ+HAAKABJBBkYmIFwQHADGUADKMACeGnZg2BAAtAyuINAAjsLw0EGxqoH4copRxGIQMOUclRzVCmIAvmxQFPAw6Cho8FjSoBzYMO213SDEYMJTeCAAPAD8ZmAAOpg7ACTFSCk7AARnJ9kAfGIacTAAShwA7gAUAORx6MIkLwBUAJQnCYnAAGn2+MBBLBOFA4egA+jJBoEYC8wdA4b14XCoSctiAAKQATWyBL82SYdHxgOBINhehBb3+p3OVxkEH872Kuig8LEHAgcWoUGwTJZZyuT2F0He8XBJHhlDe0L2cq+JAAkhRmZhzhdLlKkFB3nEMXoKNiYMqTm9LgBea3eAVcLB4PCYdCvf5XSYCmDIGQAWSwNBe3uuwi4wZI1GwLz2fhDsf+Or1V1UHOEYAAQil3vSoEyANw7ECdIA) **Input:** ```php

enhancement

We're currently not respecting line length limitations in multiple-catch blocks, which we could. --- **@prettier/plugin-php v0.14.0** [Playground link](https://loilo.github.io/prettier-php-playground/?standalone=true#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AHAAwA0IMAhgEblW14AsLAK7YoAFU648AMzYAbES2zEA5rKgBFQehhR8M+VBZhqYAGpIlWfCADsAOgCMIFjAht4slQGF0AW19sAAoAEoH4roKGIBxuAMZQAMowAJ5q1mDYEAC0AEzOINAAjoLw0IFuygF6cgogxCIQMOVslWzVBgC+LFAU8DDoKGjwWJKgbNgw7SJddZhggpN4IAA8APzGYAA6mNuuyQAEwNv7J-sU6AD62H6w1CoAFACUANzbHfuxbDCx1Pv3m5sEjcAQAlL7UJAA5AcbCxQTQAEAUQAHvEhlh9gAffYAgCCmG0EIgUJhcIRmxRaIwmH2ABIoKioOjMI9DsdTtQ2JgKGoLgyqcNME9XpgOtsQB0gA) **Input:** ```php

enhancement

**@prettier/plugin-php v0.14.3** [Playground link](https://loilo.github.io/prettier-php-playground/#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AHAAwA0IMAhgEblW14AsLAK7YoAFU648AMzYAbES2zEA5rKgBFQehhR8M+VBZhqYAGpIlWfCACsAOj4gWMCG3iyVAYXQBbH2wAFAAkA-BdBQxAOVwBjKABlGABPNWswbAgAWgAmJxBoAEdBeGgA12V-PTkFEGIRCBgytgq2KoMAXxYoCngYdBQ0eCxJUDZsGDaRTtrMMEEJvBAAHgB+YzAAHUwAEjYAAgBePYByNmOAbi3tjkOTjgutlYA+LdWj3b3nt73rz5fMEDtIA) **Input:** ```php ``` **Output:** ```php ```

bug
inline

This is a parser error I have further explored in glayzzle/php-parser#560. Posting it here as a cross reference, just in case anybody stumbles across the same error. 😁

bug
upstream

+ @prettier/[email protected] + [email protected] # Options ```sh ### General trailingComma: all printWidth: 80 tabWidth: 4 useTabs: false singleQuote: true requirePragma: false insertPragma: false ### JavaScript semi: false ### VueJS vueIndentScriptAndStyle:...

enhancement

Will it be/is it possible when using prettier + the coming PHP plugin, to prettify a .php file that contains php + html + inline js () + inline css...

enhancement
discussion

It is very confusing for the user, rather write something along the lines of "Following PSR Standards". Don't even mention prettier options. ---------------- **README.md** **https://prettier.io/docs/en/options.html#tab-width** Related #1416

See comment by @evilebottnawi in https://github.com/prettier/plugin-php/pull/1295_

Hello, On the last prettier version at this time and last php plugin version, those 2 code snippets make the php file invalid after. SNIPPET 1 Before: ``` ``` After:...

bug
inline
comments