
function_typehint_space
¶Ensure single space between function’s argument and its typehint.
--- Original
+++ New
<?php
-function sample(array$a)
+function sample(array $a)
{}
--- Original
+++ New
<?php
-function sample(array $a)
+function sample(array $a)
{}
The rule is part of the following rule sets:
Using the @PhpCsFixer rule set will enable the function_typehint_space
rule.
Using the @Symfony rule set will enable the function_typehint_space
rule.