Skip to content

Commit

Permalink
Fix 8 phpstan errors
Browse files Browse the repository at this point in the history
Readonly property App\Repository\VVTRisikenRepository::$teamRepository overrides readwrite property App\Repository\PresetRepository::$teamRepository.
  • Loading branch information
Art4 committed Mar 21, 2024
1 parent 22cd1e8 commit af75374
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions src/Repository/AuditTomZieleRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class AuditTomZieleRepository extends PresetRepository
{
public function __construct(
protected readonly ManagerRegistry $registry,
protected readonly TeamRepository $teamRepository,
TeamRepository $teamRepository,
)
{
parent::__construct($this->registry, $this->teamRepository, AuditTomZiele::class);
parent::__construct($this->registry, $teamRepository, AuditTomZiele::class);
}
}
4 changes: 2 additions & 2 deletions src/Repository/DatenweitergabeGrundlagenRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class DatenweitergabeGrundlagenRepository extends PresetRepository
{
public function __construct(
protected readonly ManagerRegistry $registry,
protected readonly TeamRepository $teamRepository,
TeamRepository $teamRepository,
)
{
parent::__construct($this->registry, $this->teamRepository, DatenweitergabeGrundlagen::class);
parent::__construct($this->registry, $teamRepository, DatenweitergabeGrundlagen::class);
}
}
4 changes: 2 additions & 2 deletions src/Repository/DatenweitergabeStandRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class DatenweitergabeStandRepository extends PresetRepository
{
public function __construct(
protected readonly ManagerRegistry $registry,
protected readonly TeamRepository $teamRepository,
TeamRepository $teamRepository,
)
{
parent::__construct($this->registry, $this->teamRepository, DatenweitergabeStand::class);
parent::__construct($this->registry, $teamRepository, DatenweitergabeStand::class);
}
}
6 changes: 3 additions & 3 deletions src/Repository/PresetRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
abstract class PresetRepository extends ServiceEntityRepository
{
public function __construct(
ManagerRegistry $registry,
protected TeamRepository $teamRepository,
string $entityClass
ManagerRegistry $registry,
protected readonly TeamRepository $teamRepository,
string $entityClass
)
{
parent::__construct($registry, $entityClass);
Expand Down
4 changes: 2 additions & 2 deletions src/Repository/ProdukteRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class ProdukteRepository extends PresetRepository
{
public function __construct(
protected readonly ManagerRegistry $registry,
protected readonly TeamRepository $teamRepository,
TeamRepository $teamRepository,
)
{
parent::__construct($this->registry, $this->teamRepository, Produkte::class);
parent::__construct($this->registry, $teamRepository, Produkte::class);
}
}
4 changes: 2 additions & 2 deletions src/Repository/VVTGrundlageRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class VVTGrundlageRepository extends PresetRepository
{
public function __construct(
protected readonly ManagerRegistry $registry,
protected readonly TeamRepository $teamRepository,
TeamRepository $teamRepository,
)
{
parent::__construct($this->registry, $this->teamRepository,VVTGrundlage::class);
parent::__construct($this->registry, $teamRepository,VVTGrundlage::class);
}
}
4 changes: 2 additions & 2 deletions src/Repository/VVTPersonenRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ class VVTPersonenRepository extends PresetRepository
{
public function __construct(
protected readonly ManagerRegistry $registry,
protected readonly TeamRepository $teamRepository,
TeamRepository $teamRepository,
)
{
parent::__construct($this->registry, $this->teamRepository, VVTPersonen::class);
parent::__construct($this->registry, $teamRepository, VVTPersonen::class);
}

public function findByTeam(Team $team)
Expand Down
4 changes: 2 additions & 2 deletions src/Repository/VVTRisikenRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class VVTRisikenRepository extends PresetRepository
{
public function __construct(
protected readonly ManagerRegistry $registry,
protected readonly TeamRepository $teamRepository,
TeamRepository $teamRepository,
)
{
parent::__construct($this->registry, $this->teamRepository, VVTRisiken::class);
parent::__construct($this->registry, $teamRepository, VVTRisiken::class);
}
}
4 changes: 2 additions & 2 deletions src/Repository/VVTStatusRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class VVTStatusRepository extends PresetRepository
{
public function __construct(
protected readonly ManagerRegistry $registry,
protected readonly TeamRepository $teamRepository,
TeamRepository $teamRepository,
)
{
parent::__construct($this->registry, $this->teamRepository, VVTStatus::class);
parent::__construct($this->registry, $teamRepository, VVTStatus::class);
}
}

0 comments on commit af75374

Please sign in to comment.