Skip to content

Commit

Permalink
Parameter #1 $class of method LastDragon_ru\LaraASP\GraphQL\SearchBy\…
Browse files Browse the repository at this point in the history
…Ast\Metadata::getOperatorInstance() expects class-string<LastDragon_ru\LaraASP\GraphQL\SearchBy\Contracts\Operator>, string given.

Parameter #1 $class of method LastDragon_ru\LaraASP\GraphQL\SearchBy\Ast\Metadata::getComplexOperatorInstance() expects class-string<LastDragon_ru\LaraASP\GraphQL\SearchBy\Contracts\ComplexOperator>, string given.

Parameter #2 $definition of method LastDragon_ru\LaraASP\GraphQL\SearchBy\Ast\Metadata::addDefinition() expects class-string<LastDragon_ru\LaraASP\GraphQL\SearchBy\Contracts\TypeDefinition>, string given.
  • Loading branch information
LastDragon-ru committed Aug 14, 2021
1 parent 9ae1bf4 commit cccbeca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/graphql/src/SearchBy/Ast/MetadataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ public function getDefinitions(): array {
public function testGetOperatorInstanceNotAnOperator(): void {
$this->expectExceptionObject(new ClassIsNotOperator(stdClass::class));

/** @phpstan-ignore-next-line Required for test */
(new Metadata($this->app, new Usage()))->getOperatorInstance(stdClass::class);
}

Expand Down Expand Up @@ -250,6 +251,7 @@ public function apply(
public function testGetComplexOperatorInstanceNotAnOperator(): void {
$this->expectExceptionObject(new ClassIsNotComplexOperator(stdClass::class));

/** @phpstan-ignore-next-line Required for test */
(new Metadata($this->app, new Usage()))->getComplexOperatorInstance(stdClass::class);
}

Expand Down Expand Up @@ -297,6 +299,7 @@ public function testAddDefinition(): void {
public function testAddDefinitionNotADefinition(): void {
$this->expectExceptionObject(new ClassIsNotDefinition(stdClass::class));

/** @phpstan-ignore-next-line Required for test */
(new Metadata($this->app, new Usage()))->addDefinition('type', stdClass::class);
}

Expand Down

0 comments on commit cccbeca

Please sign in to comment.