Skip to content

Commit 5a9a416

Browse files
committed
CS FIX
1 parent c061f58 commit 5a9a416

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

e2e/PHPStanResultsChecker.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function checkResults(string $phpstanResultsAsJsonString, array $expected
2525
$this->assertNotNull($errorCount, 'Failed to find error count in PHPStan results');
2626
if ((int) $errorCount > 0) {
2727
$errors = $asJson['errors'] ?? null;
28-
throw new \RuntimeException('PHPStan reported errors: '.var_export($errors, true));
28+
throw new RuntimeException('PHPStan reported errors: '.var_export($errors, true));
2929
}
3030

3131
$files = $asJson['files'] ?? null;
@@ -68,30 +68,30 @@ public function checkResults(string $phpstanResultsAsJsonString, array $expected
6868
var_export(array_values($expectedResults), true),
6969
]);
7070

71-
throw new \RuntimeException($errorMessage);
71+
throw new RuntimeException($errorMessage);
7272
}
7373

7474
/** @phpstan-assert !null $value */
7575
private function assertNotNull(mixed $value, string $error): void
7676
{
7777
if (null === $value) {
78-
throw new \RuntimeException($error);
78+
throw new RuntimeException($error);
7979
}
8080
}
8181

8282
/** @phpstan-assert array $value */
8383
private function assertArray(mixed $value, string $error): void
8484
{
8585
if (!is_array($value)) {
86-
throw new \RuntimeException($error);
86+
throw new RuntimeException($error);
8787
}
8888
}
8989

9090
private function getCleanFilename(string $fullFileName): string
9191
{
9292
$position = strpos($fullFileName, self::FILE_PATH_TO_REMOVE);
9393
if (false === $position) {
94-
throw new \RuntimeException('Failed to find '.self::FILE_PATH_TO_REMOVE.' in '.$fullFileName);
94+
throw new RuntimeException('Failed to find '.self::FILE_PATH_TO_REMOVE.' in '.$fullFileName);
9595
}
9696
$filePath = substr($fullFileName, $position + strlen(self::FILE_PATH_TO_REMOVE));
9797

0 commit comments

Comments
 (0)