Skip to content

Commit

Permalink
Merge pull request #1476 from greg0ire/2.6.x
Browse files Browse the repository at this point in the history
Merge 2.5.x up into 2.6.x
  • Loading branch information
greg0ire authored Feb 12, 2022
2 parents 2f308bb + 236b2ca commit 543ec0f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ jobs:
coding-standards:
name: "Coding Standards"
uses: "doctrine/.github/.github/workflows/[email protected]"
with:
composer-options: "--prefer-dist --prefer-stable"
5 changes: 0 additions & 5 deletions Mapping/ClassMetadataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Doctrine\ORM\Id\AbstractIdGenerator;
use Doctrine\ORM\Mapping\ClassMetadata;
use Doctrine\ORM\Mapping\ClassMetadataFactory as BaseClassMetadataFactory;
use Doctrine\ORM\Mapping\ClassMetadataInfo;

use function assert;

Expand All @@ -18,10 +17,6 @@ protected function doLoadMetadata($class, $parent, $rootEntityFound, array $nonS
{
parent::doLoadMetadata($class, $parent, $rootEntityFound, $nonSuperclassParents);

if (! $class instanceof ClassMetadataInfo) {
return;
}

$customGeneratorDefinition = $class->customGeneratorDefinition;

if (! isset($customGeneratorDefinition['instance'])) {
Expand Down
7 changes: 3 additions & 4 deletions Tests/DependencyInjection/DoctrineExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -779,12 +779,11 @@ public function testAnnotationsBundleMappingDetection(): void
]);
}

/**
* @requires PHP 8
*/
public function testAttributesBundleMappingDetection(): void
{
if (PHP_VERSION_ID < 70400) {
self::markTestSkipped('This test requires PHP 7.4.');
}

$container = $this->getContainer(['AttributesBundle']);
$extension = new DoctrineExtension();

Expand Down
2 changes: 1 addition & 1 deletion Tests/Repository/ContainerRepositoryFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public function findOneBy(array $criteria)

public function getClassName(): string
{
return '';
return stdClass::class;
}
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
}
},
"conflict": {
"doctrine/orm": "<2.10",
"doctrine/orm": "<2.10|>=3.0",
"twig/twig": "<1.34|>=2.0,<2.4"
},
"suggest": {
Expand Down

0 comments on commit 543ec0f

Please sign in to comment.