What's new
✨ New StandaloneLineSymfonyAttributeParamFixer + standaloneLine set
Breaks each argument of a Symfony attribute onto its own line. New opt-in standaloneLine set groups the standalone-line rules.
-#[\Symfony\Component\Console\Attribute\AsCommand(name: 'mautic:entity:import', description: 'Import entity data from a ZIP file.')]
+#[\Symfony\Component\Console\Attribute\AsCommand(
+ name: 'mautic:entity:import',
+ description: 'Import entity data from a ZIP file.'
+)]$ecsConfig->withPreparedSets(standaloneLine: true);
// or
$ecsConfig->withSets([SetList::STANDALONE_LINE]);🐛 Recognize imported short-name Symfony attributes
Now resolves short names against use imports, not just fully-qualified names.
use Symfony\Component\Console\Attribute\AsCommand;
-#[AsCommand(name: 'app:some', description: 'Some description')]
+#[AsCommand(
+ name: 'app:some',
+ description: 'Some description'
+)]