Skip to content

Commit

Permalink
Ignore some PHPStan errors
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Sep 30, 2023
1 parent 3b750c7 commit 99b1313
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/classes/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ protected function assertAllErrorCodesConsumed(): void
public static function assertMatchesRegularExpression(string $pattern, string $string, string $message = ''): void
{
if (method_exists(TestCase::class, 'assertMatchesRegularExpression')) {
/** @phpstan-ignore-next-line */
parent::assertMatchesRegularExpression($pattern, $string, $message);
} else {
/** @psalm-suppress DeprecatedMethod */
Expand All @@ -140,6 +141,7 @@ public static function assertMatchesRegularExpression(string $pattern, string $s
public static function assertFileDoesNotExist(string $filename, string $message = ''): void
{
if (method_exists(TestCase::class, 'assertFileDoesNotExist')) {
/** @phpstan-ignore-next-line */
parent::assertFileDoesNotExist($filename, $message);
} else {
/** @psalm-suppress DeprecatedMethod */
Expand Down

0 comments on commit 99b1313

Please sign in to comment.