Skip to content

Commit a53b8da

Browse files
grongorkukulich
authored andcommitted
Make asserts static as rest of the methods
1 parent 4b0cec0 commit a53b8da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SlevomatCodingStandard/Sniffs/TestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected static function assertSniffError(\PHP_CodeSniffer\Files\File $codeSnif
8787
);
8888
}
8989

90-
protected function assertNoSniffError(\PHP_CodeSniffer\Files\File $codeSnifferFile, int $line): void
90+
protected static function assertNoSniffError(\PHP_CodeSniffer\Files\File $codeSnifferFile, int $line): void
9191
{
9292
$errors = $codeSnifferFile->getErrors();
9393
self::assertFalse(
@@ -102,7 +102,7 @@ protected function assertNoSniffError(\PHP_CodeSniffer\Files\File $codeSnifferFi
102102
);
103103
}
104104

105-
protected function assertAllFixedInFile(\PHP_CodeSniffer\Files\File $codeSnifferFile): void
105+
protected static function assertAllFixedInFile(\PHP_CodeSniffer\Files\File $codeSnifferFile): void
106106
{
107107
$codeSnifferFile->disableCaching();
108108
$codeSnifferFile->fixer->fixFile();

0 commit comments

Comments
 (0)