Skip to content

Commit

Permalink
Fixed UndefinedClass for Fixtures via <stubs>
Browse files Browse the repository at this point in the history
  • Loading branch information
vudaltsov committed Feb 20, 2024
1 parent 760d026 commit 120ed47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions psalm.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@
</forbiddenFunctions>

<stubs>
<file name="tests/unit/Fixtures/classes.php" preloadClasses="true"/>
<file name="tests/unit/Fixtures/readonly_classes.php" preloadClasses="true"/>
<file name="stubs/PhpParser/Node/Expr/Variable.phpstub"/>
<file name="stubs/PhpParser/Node/Identifier.phpstub"/>
<file name="stubs/PhpParser/Node/IntersectionType.phpstub"/>
Expand Down
3 changes: 0 additions & 3 deletions tests/unit/NativeReflector/NativeReflectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
use TraitUsage\ClassSimplyUsesTraitAsIs;
use Typhoon\Reflection\FixturesProvider;

/**
* @psalm-suppress UndefinedClass
*/
#[CoversClass(NativeReflector::class)]
final class NativeReflectorTest extends TestCase
{
Expand Down

0 comments on commit 120ed47

Please sign in to comment.