diff --git a/src/Psalm/Internal/Stubs/Generator/ClassLikeStubGenerator.php b/src/Psalm/Internal/Stubs/Generator/ClassLikeStubGenerator.php index a1044f89d..55d19edca 100644 --- a/src/Psalm/Internal/Stubs/Generator/ClassLikeStubGenerator.php +++ b/src/Psalm/Internal/Stubs/Generator/ClassLikeStubGenerator.php @@ -16,6 +16,7 @@ use Psalm\Storage\ClassLikeStorage; use Psalm\Internal\Analyzer\ClassLikeAnalyzer; use Psalm\Internal\Scanner\ParsedDocblock; use Psalm\Type; +use function array_slice; class ClassLikeStubGenerator { diff --git a/src/Psalm/Internal/Stubs/Generator/StubsGenerator.php b/src/Psalm/Internal/Stubs/Generator/StubsGenerator.php index e57c180b2..efce50c04 100644 --- a/src/Psalm/Internal/Stubs/Generator/StubsGenerator.php +++ b/src/Psalm/Internal/Stubs/Generator/StubsGenerator.php @@ -22,6 +22,7 @@ use Psalm\Node\VirtualName; use Psalm\Node\VirtualNullableType; use Psalm\Node\VirtualParam; use Psalm\Type; +use function dirname; class StubsGenerator {