File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,15 @@ final class StubTest extends PHPStanTestCase
14
14
use AdditionalConfigFilesTrait;
15
15
16
16
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 );
23
26
$ errorsAsArrays = array_map (
24
27
static fn (Error $ error ) => $ error ->jsonSerialize (),
25
28
$ stubErrors
You can’t perform that action at this time.
0 commit comments