Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
fix notation for unofficial doc types
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <noreply@github.com>
  • Loading branch information
fpesch authored Sep 19, 2021
1 parent 5c186f4 commit c383798
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion example/MyFixtureFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
final class MyFixtureFactory implements FixtureFactoryInterface
{
/**
* @param class-string $fixtureClass
* @psalm-param class-string $fixtureClass
*/
public function createInstance(string $fixtureClass): FixtureInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Fixture/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ public function __construct(FixtureFactoryInterface $fixtureFactory)
}

/**
* @param array<class-string, array> $dependencyChain
* @psalm-param array<class-string, array> $dependencyChain
*/
public function loadDependencyChain(array $dependencyChain): void
{
/** @var array<class-string, array> $dependencySubChain */
/** @psalm-var array<class-string, array> $dependencySubChain */
foreach ($dependencyChain as $parentFixture => $dependencySubChain) {
$this->loadDependencyChain($dependencySubChain);
$instance = $this->fixtureFactory->createInstance($parentFixture);
Expand Down
2 changes: 1 addition & 1 deletion src/FixtureFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
interface FixtureFactoryInterface
{
/**
* @param class-string $fixtureClass
* @psalm-param class-string $fixtureClass
*/
public function createInstance(string $fixtureClass): FixtureInterface;
}
2 changes: 1 addition & 1 deletion tests/Support/FixtureFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class FixtureFactory implements FixtureFactoryInterface
{
/**
* @param class-string $fixtureClass
* @psalm-param class-string $fixtureClass
*/
public function createInstance(string $fixtureClass): FixtureInterface
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Dependency/ChainBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final class ChainBuilderTest extends TestCase
/**
* @dataProvider dataProviderTestBuild
*
* @param array<class-string, array> $expected
* @psalm-param array<class-string, array> $expected
* @param FixtureInterface[] $fixtures
*
* @throws CircularReferenceException
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Dependency/ValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class ValidatorTest extends TestCase
/**
* @dataProvider dataProviderTestValidDependencyClasses
*
* @param class-string $dependencyClass
* @psalm-param class-string $dependencyClass
*
* @throws InvalidFixtureException
*/
Expand All @@ -43,7 +43,7 @@ public function dataProviderTestValidDependencyClasses(): iterable
/**
* @dataProvider dataProviderTestInvalidDependencyClasses
*
* @param class-string $dependencyClass
* @psalm-param class-string $dependencyClass
*
* @throws InvalidFixtureException
*/
Expand Down

0 comments on commit c383798

Please sign in to comment.