Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vudaltsov committed Feb 7, 2024
1 parent e8b2a2b commit fe46c66
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/PsalmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public static function extractType(Type $_type): mixed
return null;
}

#[TestWith([__DIR__ . '/psalm/AnyLiteralIntType.phpt'])]
#[TestWith([__DIR__ . '/psalm/AnyLiteralStringType.phpt'])]
#[TestWith([__DIR__ . '/psalm/ArrayKeyType.phpt'])]
#[TestWith([__DIR__ . '/psalm/ArrayShapeType.phpt'])]
#[TestWith([__DIR__ . '/psalm/ArrayType.phpt'])]
Expand Down Expand Up @@ -52,8 +54,6 @@ public static function extractType(Type $_type): mixed
#[TestWith([__DIR__ . '/psalm/IterableType.phpt'])]
#[TestWith([__DIR__ . '/psalm/KeyOfType.phpt'])]
#[TestWith([__DIR__ . '/psalm/ListType.phpt'])]
#[TestWith([__DIR__ . '/psalm/LiteralIntType.phpt'])]
#[TestWith([__DIR__ . '/psalm/LiteralStringType.phpt'])]
#[TestWith([__DIR__ . '/psalm/MixedType.phpt'])]
#[TestWith([__DIR__ . '/psalm/NamedClassStringType.phpt'])]
#[TestWith([__DIR__ . '/psalm/NamedObjectType.phpt'])]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Typhoon\Type;

$_type = PsalmTest::extractType(LiteralIntType::type);
$_type = PsalmTest::extractType(AnyLiteralIntType::type);
/** @psalm-check-type-exact $_type = \literal-int */

--EXPECT--
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Typhoon\Type;

$_type = PsalmTest::extractType(LiteralStringType::type);
$_type = PsalmTest::extractType(AnyLiteralStringType::type);
/** @psalm-check-type-exact $_type = \literal-string */

--EXPECT--

0 comments on commit fe46c66

Please sign in to comment.