Skip to content

Commit

Permalink
Resolve conflict after upmerging tests for PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Mar 15, 2022
2 parents 2949002 + 898ca96 commit 0269c3f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ jobs:
php: 8.0
symfony: ^5.4
twig: ^3.0
-
php: 8.1
symfony: ^4.4
-
php: 8.1
symfony: ^5.4
twig: ^2.12
-
php: 8.1
symfony: ^5.4
twig: ^3.0

steps:
-
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"matthiasnoback/symfony-dependency-injection-test": "^4.2.1",
"pagerfanta/pagerfanta": "^3.0",
"pamil/phpspec-skip-example-extension": "^4.2",
"phpspec/phpspec": "^7.0",
"phpspec/phpspec": "^7.2",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "0.12.99",
"phpstan/phpstan-phpunit": "0.12.22",
Expand Down
3 changes: 2 additions & 1 deletion src/Bundle/EventListener/ORMRepositoryClassSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

namespace Sylius\Bundle\ResourceBundle\EventListener;

use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\Event\LoadClassMetadataEventArgs;
use Doctrine\ORM\Events;
use Doctrine\ORM\Mapping\ClassMetadata;
Expand Down Expand Up @@ -40,7 +41,7 @@ private function setCustomRepositoryClass(ClassMetadata $metadata): void
}

if ($resourceMetadata->hasClass('repository')) {
/** @psalm-var class-string $repository */
/** @psalm-var class-string<EntityRepository>|null $repository */
$repository = $resourceMetadata->getClass('repository');
$metadata->setCustomRepositoryClass($repository);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Component/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"require-dev": {
"behat/transliterator": "^1.3",
"phpspec/phpspec": "^7.0",
"phpspec/phpspec": "^7.2",
"phpunit/phpunit": "^9.5"
},
"extra": {
Expand Down

0 comments on commit 0269c3f

Please sign in to comment.