Skip to content

Commit 8927837

Browse files
committed
minor #1398 Fix tests CS violations (maelanleborgne)
This PR was squashed before being merged into the 1.x-dev branch. Discussion ---------- Fix tests CS violations Lately CI checks fail because of an [upgrade of the default phpunit version used in phpunit-bridge](symfony/symfony#50760). This PR fixes this in the bundle's tests. And also a couple of minor cs fixes. (EDIT: just noticed the CS part was fixed in #1397 just earlier) Commits ------- 47137b2 Fix tests CS violations
2 parents 112f946 + 47137b2 commit 8927837

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/Doctrine/EntityDetails.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function getFormFields(): array
6767
}
6868
$fieldsWithTypes[$fieldName] = [
6969
'type' => EntityType::class,
70-
'options_code' => sprintf('\'class\' => %s::class,', $relation['targetEntity']).PHP_EOL.'\'choice_label\' => \'id\',',
70+
'options_code' => sprintf('\'class\' => %s::class,', $relation['targetEntity']).\PHP_EOL.'\'choice_label\' => \'id\',',
7171
'extra_use_classes' => [$relation['targetEntity']],
7272
];
7373
if (\Doctrine\ORM\Mapping\ClassMetadata::MANY_TO_MANY === $relation['type']) {

src/Maker/MakeCrud.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,8 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
251251
$repositoryClassName,
252252
]);
253253

254-
255254
$useStatements->addUseStatement(EntityRepository::class);
256255

257-
258256
if (EntityManagerInterface::class !== $repositoryClassName) {
259257
$useStatements->addUseStatement(EntityManagerInterface::class);
260258
}

src/Test/MakerTestEnvironment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ private function buildFlexSkeleton(): void
283283
// do not explicitly set the PHPUnit version
284284
[
285285
'filename' => 'phpunit.xml.dist',
286-
'find' => '<server name="SYMFONY_PHPUNIT_VERSION" value="9.5" />',
286+
'find' => '<server name="SYMFONY_PHPUNIT_VERSION" value="9.6" />',
287287
'replace' => '',
288288
],
289289
];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy