Skip to content

Commit

Permalink
Merge pull request #1475 from greg0ire/fix-build
Browse files Browse the repository at this point in the history
Fix build
  • Loading branch information
greg0ire authored Feb 12, 2022
2 parents 100687e + b2fa2aa commit 0b47e6e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 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 @@ -764,12 +764,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

0 comments on commit 0b47e6e

Please sign in to comment.