Fix cs after php-cs-fixer upgrade, fix phpstan and rector errors

This commit is contained in:
2024-09-05 18:00:37 +02:00
parent e29e1db6ed
commit e8f09b507f
5 changed files with 39 additions and 26 deletions

View File

@@ -19,12 +19,10 @@ use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\ORM\NonUniqueResultException;
use Doctrine\ORM\NoResultException;
use Doctrine\Persistence\ManagerRegistry;
use Symfony\Component\Workflow\Workflow;
/**
* @template-extends ServiceEntityRepository<EntityWorkflowStepHold>
*/
class EntityWorkflowStepHoldRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
@@ -92,7 +90,7 @@ class EntityWorkflowStepHoldRepository extends ServiceEntityRepository
->setParameter('user', $user)
->getQuery()
->getSingleResult();
} catch (NoResultException $e) {
} catch (NoResultException) {
return null;
}
}