Skip to content

Commit

Permalink
Fix PHPUnit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
loic425 committed Jun 20, 2023
1 parent c5be4f2 commit 1774077
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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".');
Expand Down
3 changes: 1 addition & 2 deletions src/Component/Tests/Symfony/Maker/MakeResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 1774077

Please sign in to comment.