per-coding-style
per-coding-style copied to clipboard
PER coding style
I'm not sure if this already has been discussed, if so, please let me know. Currently the [Method and Function Parameters](https://www.php-fig.org/per/coding-style/#45-method-and-function-parameters) section defines a function argument list split across multiple...
Currently, there are no coding style rules for match expression operators. I suggest having the double-arrow operators in alignment, with the option of breaking out of alignment when using more...
None of the PSRs for Coding Standards, nor PER-CS, explicitly indicate whether the opening tag for PHP should be in lowercase, though this is very much implied in PSR-1 -...
Update section 5.2 advising that semi-colons must not be used in switch statement. Resolves https://github.com/php-fig/per-coding-style/issues/128
With PHP 8.5 coming out very soon, it's time for a minor update. This should not require any breaking changes, so I expect it to be a 3.1 release, not...
Hey, everyone! Just noticed the way how "very complex" example is being put in 2.5: I would think it is a little bit illogical, because it violates of how we're...
These are almost never used, and are now deprecated in PHP 8.5. Let's go ahead and tell people to never use them in any version. ```php switch ($val) { case...
I want to report a case that does not seem to be explicitly covered by PSR-12. It concerns variable destructuring using the `list()` and `[]` syntaxes. I have this code:...
Following #109. With PHP 8.5 `clone()` is now a proper function that still supports a parentheses-less syntax for compatibility purposes, but requires parens for the new clone-with functionality. For consistency...