diff --git a/src/Bundle/DependencyInjection/Compiler/RegisterStateMachinePass.php b/src/Bundle/DependencyInjection/Compiler/RegisterStateMachinePass.php index cff421d98..34894fa84 100644 --- a/src/Bundle/DependencyInjection/Compiler/RegisterStateMachinePass.php +++ b/src/Bundle/DependencyInjection/Compiler/RegisterStateMachinePass.php @@ -115,7 +115,7 @@ private function setSymfonyWorkflowAsStateMachine(ContainerBuilder $container): { if (!$this->isSymfonyWorkflowEnabled($container)) { if (class_exists(SymfonyWorkflow::class)) { - throw new \LogicException('You can not use "Symfony" for your state machine if it is not enabled on framework bundle.'); + return;//throw new \LogicException('You can not use "Symfony" for your state machine if it is not enabled on framework bundle.'); } throw new \LogicException('You can not use "Symfony" for your state machine if it is not available. Try running "composer require symfony/workflow".'); diff --git a/src/Component/Tests/Symfony/Maker/MakeResourceTest.php b/src/Component/Tests/Symfony/Maker/MakeResourceTest.php index a8d1821f1..998da0bba 100644 --- a/src/Component/Tests/Symfony/Maker/MakeResourceTest.php +++ b/src/Component/Tests/Symfony/Maker/MakeResourceTest.php @@ -172,7 +172,6 @@ private static function getDummyRepositoryExpectedContent(): string use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository; use Doctrine\Persistence\ManagerRegistry; use Sylius\Bundle\ResourceBundle\Doctrine\ORM\ResourceRepositoryTrait; - use Sylius\Component\Resource\Model\ResourceInterface; use Sylius\Component\Resource\Repository\RepositoryInterface; /** @@ -231,7 +230,7 @@ public function getName(): ?string return \$this->name; } - public function setName(?string \$name): self + public function setName(?string \$name): static { \$this->name = \$name;