SpacePossum

Results 17 issues of SpacePossum

This fixes the current the rules and code so these handle the new `readonly` classes as added in PHP8.2. The `class_definition` rule will now also sort the `class` `modifiers following:...

topic/PHP8.2

This fixes the DNF types support on the tokens level. It adds new CT types for the braces and fixes the other transformers that didn't handle the new PHP8.2 syntax...

rfc: https://wiki.php.net/rfc/dnf_types example: ```php function generateSlug((HasTitle&HasId)|null $post) ``` - [ ] create new custom tokens for `(` and `)` (https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/6629) - [ ] update existing transformers to work properly with...

kind/feature request
topic/PHP8.2

rfc: https://wiki.php.net/rfc/remove_utf8_decode_and_utf8_encode might be worth checking if we can provide fixing to `mb_convert_encoding`, risky rule

kind/feature request
topic/PHP8.2

rfc: https://wiki.php.net/rfc/strtolower-ascii might be worth checking if can help migrate towards `mb_strtolower()`

kind/feature request
topic/PHP8.2

This PR brings annotation support and a number of refinements. Replaces: https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/5939 Close: https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/5782 - `annotation_include` has been deprecated and renamed to `include` - `annotation_exclude` has been deprecated and renamed...

The PHPDoc of Tokens look off: ```txt /** * Get index for closest sibling token not of given kind. * * @param int $index token index * @param -1|1 $direction...

kind/bug