Skip to content

Commit

Permalink
Doctrine CS 12
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Oct 28, 2023
1 parent 8701605 commit 22940fb
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 18 deletions.
10 changes: 3 additions & 7 deletions Command/LoadDataFixturesDoctrineCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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(<<<EOT
->setHelp(<<<'EOT'
The <info>%command.name%</info> command loads data fixtures from your application:
<info>php %command.full_name%</info>
Expand All @@ -93,9 +91,7 @@ protected function configure()
);
}

/**
* @return int
*/
/** @return int */
protected function execute(InputInterface $input, OutputInterface $output)
{
$ui = new SymfonyStyle($input, $output);
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/DoctrineFixturesExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class DoctrineFixturesExtension extends Extension
{
/**
* {@inheritdoc}
* {@inheritDoc}
*
* @return void
*/
Expand Down
4 changes: 1 addition & 3 deletions Purger/PurgerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@

interface PurgerFactory
{
/**
* @psalm-param list<string> $excluded
*/
/** @psalm-param list<string> $excluded */
public function createForEntityManager(
?string $emName,
EntityManagerInterface $em,
Expand Down
4 changes: 1 addition & 3 deletions Tests/Command/LoadDataFixturesDoctrineCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ public function testInstantiatingWithoutManagerRegistry(): void
}
}

/**
* @doesNotPerformAssertions
*/
/** @doesNotPerformAssertions */
public function testInstantiatingWithManagerRegistry(): void
{
$registry = $this->createMock(ManagerRegistry::class);
Expand Down
4 changes: 1 addition & 3 deletions Tests/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,6 @@ public function testRunCommandWithPurgeMode(): void

interface ForwardCompatibleEntityManager extends EntityManagerInterface
{
/**
* @return mixed
*/
/** @return mixed */
public function wrapInTransaction(callable $func);
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 22940fb

Please sign in to comment.