apply rector rules: php up to php82

This commit is contained in:
2023-07-19 23:16:01 +02:00
parent 7b637d1287
commit 023a29cb78
744 changed files with 1369 additions and 1381 deletions

View File

@@ -65,7 +65,7 @@ readonly class AccompanyingPeriodInfoRepository implements AccompanyingPeriodInf
->getSingleColumnResult();
}
public function find($id): ?AccompanyingPeriodInfo
public function find($id): never
{
throw new LogicException("Calling an accompanying period info by his id does not make sense");
}

View File

@@ -18,7 +18,7 @@ use Doctrine\Persistence\ObjectRepository;
class AccompanyingPeriodWorkEvaluationDocumentRepository implements ObjectRepository
{
private EntityRepository $repository;
private readonly EntityRepository $repository;
public function __construct(EntityManagerInterface $em)
{

View File

@@ -21,7 +21,7 @@ use Doctrine\Persistence\ObjectRepository;
class AccompanyingPeriodWorkEvaluationRepository implements ObjectRepository
{
private EntityRepository $repository;
private readonly EntityRepository $repository;
public function __construct(EntityManagerInterface $entityManager)
{

View File

@@ -23,7 +23,7 @@ use Doctrine\ORM\EntityRepository;
*/
final class AccompanyingPeriodWorkGoalRepository
{
private EntityRepository $repository;
private readonly EntityRepository $repository;
public function __construct(EntityManagerInterface $entityManager)
{

View File

@@ -23,7 +23,7 @@ use Doctrine\ORM\Query\ResultSetMappingBuilder;
use Doctrine\ORM\QueryBuilder;
use Doctrine\Persistence\ObjectRepository;
final class AccompanyingPeriodWorkRepository implements ObjectRepository
final readonly class AccompanyingPeriodWorkRepository implements ObjectRepository
{
private EntityRepository $repository;

View File

@@ -16,7 +16,7 @@ use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\Query\ResultSetMappingBuilder;
final class ClosingMotiveRepository implements ClosingMotiveRepositoryInterface
final readonly class ClosingMotiveRepository implements ClosingMotiveRepositoryInterface
{
private EntityRepository $repository;

View File

@@ -17,7 +17,7 @@ use Doctrine\ORM\EntityRepository;
final class CommentRepository
{
private EntityRepository $repository;
private readonly EntityRepository $repository;
public function __construct(EntityManagerInterface $entityManager)
{

View File

@@ -17,7 +17,7 @@ use Doctrine\ORM\EntityRepository;
final class OriginRepository
{
private EntityRepository $repository;
private readonly EntityRepository $repository;
public function __construct(EntityManagerInterface $entityManager)
{

View File

@@ -17,7 +17,7 @@ use Doctrine\ORM\EntityRepository;
final class ResourceRepository
{
private EntityRepository $repository;
private readonly EntityRepository $repository;
public function __construct(EntityManagerInterface $entityManager)
{