Skip to content

arrow function spacing

Compare
Choose a tag to compare
@krzysztofrewak krzysztofrewak released this 29 Mar 06:39
· 60 commits to main since this release
7bc71fe

There were new fixers added to Blumilk/Configuration/Defaults/CommonAdditionalRules within #11 task:

use Blumilk\Codestyle\Fixers\NoSpacesAfterFunctionNameFixer;
use PhpCsFixer\Fixer\FunctionNotation\UseArrowFunctionsFixer;
use PhpCsFixer\Fixer\FunctionNotation\VoidReturnFixer;
use PhpCsFixer\Fixer\Import\FullyQualifiedStrictTypesFixer;
use PhpCsFixer\Fixer\Import\OrderedImportsFixer;

Arrow functions spacing were broken and it wass working like this:

array_filter([1, 2, 3, 4], fn (int $i): bool => $i % 2 === 0);

Now it's properly formatted into this:

array_filter([1, 2, 3, 4], fn(int $i): bool => $i % 2 === 0);