diff --git a/Command/LoadDataFixturesDoctrineCommand.php b/Command/LoadDataFixturesDoctrineCommand.php index c6cb30d..ce277d2 100644 --- a/Command/LoadDataFixturesDoctrineCommand.php +++ b/Command/LoadDataFixturesDoctrineCommand.php @@ -37,9 +37,7 @@ class LoadDataFixturesDoctrineCommand extends DoctrineCommand /** @var PurgerFactory[] */ private $purgerFactories; - /** - * @param PurgerFactory[] $purgerFactories - */ + /** @param PurgerFactory[] $purgerFactories */ public function __construct(SymfonyFixturesLoader $fixturesLoader, ?ManagerRegistry $doctrine = null, array $purgerFactories = []) { if ($doctrine === null) { @@ -69,7 +67,7 @@ protected function configure() ->addOption('purge-exclusions', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'List of database tables to ignore while purging') ->addOption('shard', null, InputOption::VALUE_REQUIRED, 'The shard connection to use for this command.') ->addOption('purge-with-truncate', null, InputOption::VALUE_NONE, 'Purge data by using a database-level TRUNCATE statement') - ->setHelp(<<setHelp(<<<'EOT' The %command.name% command loads data fixtures from your application: php %command.full_name% @@ -93,9 +91,7 @@ protected function configure() ); } - /** - * @return int - */ + /** @return int */ protected function execute(InputInterface $input, OutputInterface $output) { $ui = new SymfonyStyle($input, $output); diff --git a/DependencyInjection/DoctrineFixturesExtension.php b/DependencyInjection/DoctrineFixturesExtension.php index 36680ab..e23e40b 100644 --- a/DependencyInjection/DoctrineFixturesExtension.php +++ b/DependencyInjection/DoctrineFixturesExtension.php @@ -16,7 +16,7 @@ class DoctrineFixturesExtension extends Extension { /** - * {@inheritdoc} + * {@inheritDoc} * * @return void */ diff --git a/Purger/PurgerFactory.php b/Purger/PurgerFactory.php index 1effb1f..b625888 100644 --- a/Purger/PurgerFactory.php +++ b/Purger/PurgerFactory.php @@ -9,9 +9,7 @@ interface PurgerFactory { - /** - * @psalm-param list $excluded - */ + /** @psalm-param list $excluded */ public function createForEntityManager( ?string $emName, EntityManagerInterface $em, diff --git a/Tests/Command/LoadDataFixturesDoctrineCommandTest.php b/Tests/Command/LoadDataFixturesDoctrineCommandTest.php index 6607ce9..987e355 100644 --- a/Tests/Command/LoadDataFixturesDoctrineCommandTest.php +++ b/Tests/Command/LoadDataFixturesDoctrineCommandTest.php @@ -41,9 +41,7 @@ public function testInstantiatingWithoutManagerRegistry(): void } } - /** - * @doesNotPerformAssertions - */ + /** @doesNotPerformAssertions */ public function testInstantiatingWithManagerRegistry(): void { $registry = $this->createMock(ManagerRegistry::class); diff --git a/Tests/IntegrationTest.php b/Tests/IntegrationTest.php index 963a127..6a9d226 100644 --- a/Tests/IntegrationTest.php +++ b/Tests/IntegrationTest.php @@ -499,8 +499,6 @@ public function testRunCommandWithPurgeMode(): void interface ForwardCompatibleEntityManager extends EntityManagerInterface { - /** - * @return mixed - */ + /** @return mixed */ public function wrapInTransaction(callable $func); } diff --git a/composer.json b/composer.json index 62050f7..7ee1e88 100644 --- a/composer.json +++ b/composer.json @@ -32,7 +32,7 @@ "symfony/http-kernel": "^3.4|^4.3|^5.0|^6.0" }, "require-dev": { - "doctrine/coding-standard": "^9", + "doctrine/coding-standard": "^9 || ^12", "phpstan/phpstan": "^1.4.10", "phpunit/phpunit": "^7.5.20 || ^8.5.26 || ^9.5.20", "symfony/phpunit-bridge": "^6.0.8",