Skip to content

Commit

Permalink
qa: remove useless var annotation and the psalm suppression
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
  • Loading branch information
boesing committed Nov 15, 2021
1 parent dac82e9 commit 62b0a09
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,8 @@ class Foo

$resolved = $this->resolver->resolve('ReconciliationTest\\Foo', 'QOO');
self::assertNotNull($resolved);
/** @var list<\Psalm\Type\Atomic> */
self::assertCount(1, $resolved);
/** @var non-empty-list<\Psalm\Type\Atomic> $type */
$type = $resolved[0];
/**
* @psalm-suppress DocblockTypeContradiction TLiteralString has to be asserted here,
* ofc it does not match the docblock
*/
self::assertInstanceOf(TLiteralString::class, $type);
self::assertTrue($type->value === 'qoo');
}
Expand Down

0 comments on commit 62b0a09

Please sign in to comment.