Skip to content

Commit

Permalink
Remove readonly param
Browse files Browse the repository at this point in the history
  • Loading branch information
jkniest committed Jun 14, 2024
1 parent fa66ff2 commit c9695a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Fixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

abstract class Fixture
{
protected readonly FixtureHelper $helper;
protected FixtureHelper $helper;

abstract public function load(): void;

Expand All @@ -28,9 +28,9 @@ public function groups(): array
}

/**
* @internal This method should only be called from the FixtureLoader.
* @internal this method should only be called from the FixtureLoader
*/
public final function setHelper(FixtureHelper $helper): void
final public function setHelper(FixtureHelper $helper): void
{
$this->helper = $helper;
}
Expand Down
6 changes: 3 additions & 3 deletions src/FixtureLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ class FixtureLoader
*/
public function __construct(
\Traversable $fixtures,
private FixtureHelper $helper,
)
{
private readonly FixtureHelper $helper,
) {
$this->fixtures = iterator_to_array($fixtures);
}

Expand Down Expand Up @@ -137,6 +136,7 @@ private function checkThatAllDependenciesAreInGroup(
* Check if dependencies of fixture are also in the same group. If not, show error and stop process.
*
* @param array<string, Fixture> $references
* @param array<string, Fixture> $references
*/
private function checkDependenciesAreInSameGroup(
Fixture $fixture,
Expand Down

0 comments on commit c9695a1

Please sign in to comment.