Skip to content

Commit 1bba9cf

Browse files
committed
Ignore API promise warnings for test
1 parent f699ee3 commit 1bba9cf

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tests/src/StubTest.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ final class StubTest extends PHPStanTestCase
1414
use AdditionalConfigFilesTrait;
1515

1616
public function testValid(): void {
17-
$projectStubFiles = self::getContainer()
18-
->getByType(StubFilesProvider::class)
19-
->getProjectStubFiles();
20-
$stubErrors = self::getContainer()
21-
->getByType(StubValidator::class)
22-
->validate($projectStubFiles, true);
17+
$stubFilesProvider = self::getContainer()
18+
->getByType(StubFilesProvider::class);
19+
// @phpstan-ignore-next-line
20+
$projectStubFiles = $stubFilesProvider->getProjectStubFiles();
21+
22+
$stubValidators = self::getContainer()
23+
->getByType(StubValidator::class);
24+
// @phpstan-ignore-next-line
25+
$stubErrors = $stubValidators->validate($projectStubFiles, true);
2326
$errorsAsArrays = array_map(
2427
static fn (Error $error) => $error->jsonSerialize(),
2528
$stubErrors

0 commit comments

Comments
 (0)