Skip to content

Commit 9d5f086

Browse files
committed
chore: add phpstan-stubs
1 parent b919e3e commit 9d5f086

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

phpstan-stubs.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
// Stubs for PHPStan analysis — these functions are defined in tests/Pest.php
4+
// and are available at runtime, but PHPStan needs them declared here.
5+
6+
if (! function_exists('getTestSupportPath')) {
7+
function getTestSupportPath(string $path): string
8+
{
9+
return __DIR__.'/tests/TestSupport/'.$path;
10+
}
11+
}

0 commit comments

Comments
 (0)