Replies: 2 comments 1 reply
-
For arrays you may be interested in #6930, but I believe we don't have fixer (or even PR ongoing) for function/method signatures 🤔. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I'm using the "Globally (manual)" suggested here
https://cs.symfony.com/doc/installation.html
with this comand I fix all things except one
php-cs-fixer fix ./ --rules='@PSR12,@Symfony,@PhpCsFixer'
I want to transform this kind of array
$friends = [1 => 'Peter', 2 => 'Paul'];
into
and the same for the function like in this example
public function __construct(public int $age, private string $name) { }
in this page there aren't solutions to do that
https://mlocati.github.io/php-cs-fixer-configurator/#version:3.16
but after some research I found this page
https://github.com/symplify/coding-standard/blob/main/docs/rules_overview.md#linelengthfixer
can you help me to understand how to place parameters on multiple lines?
thanks
Beta Was this translation helpful? Give feedback.
All reactions