Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
with:
coverage: "none"
ini-values: "memory_limit=-1"
php-version: "8.2"
php-version: "8.4"
tools: "composer"

- name: Install vendors
Expand All @@ -43,7 +43,7 @@ jobs:
with:
coverage: "none"
ini-values: "memory_limit=-1"
php-version: "8.2"
php-version: "8.4"
tools: "composer"

- name: Install vendors
Expand All @@ -58,7 +58,7 @@ jobs:

strategy:
matrix:
php: [ '8.2', '8.3', '8.4' ]
php: [ '8.4', '8.5' ]

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.2-cli
FROM php:8.4-cli

LABEL org.opencontainers.image.authors="Vitalii Zhuk <v.zhuk@fivelab.org>"

Expand Down
8 changes: 6 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@
],

"require": {
"php": "~8.2"
"php": "~8.4"
},

"conflict": {
"squizlabs/php_codesniffer": "<4"
},

"require-dev": {
"phpunit/phpunit": "~11.0",
"phpstan/phpstan": "~2.0",
"escapestudios/symfony2-coding-standard": "~3.13"
"escapestudios/symfony2-coding-standard": "~3.17"
},

"suggest": {
Expand Down
6 changes: 3 additions & 3 deletions src/PhpCs/FiveLab/PhpCsUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,20 @@
$tokens = $file->getTokens();
$diffLines = 0;

for ($i = $fromPtr; $i <= $toPtr; $i++) {

Check failure on line 59 in src/PhpCs/FiveLab/PhpCsUtils.php

View workflow job for this annotation

GitHub Actions / Run PHP-Stan

Cannot use ++ on int|false.
$token = $tokens[$i];

if ($token['code'] === T_WHITESPACE && $token['content'] === $file->eolChar) {
$diffLines++;
} elseif (\in_array($token['code'], Tokens::$commentTokens, true)) {
} elseif (\in_array($token['code'], Tokens::COMMENT_TOKENS, true)) {
if ($token['code'] === T_DOC_COMMENT_OPEN_TAG) {
$i = $file->findNext([T_DOC_COMMENT_CLOSE_TAG], $i + 1);
} elseif ($token['code'] === T_COMMENT) {
$tokensOnLine = self::getTokensOnLine($file, $token['line']);
$existCodeOnLine = false;

foreach ($tokensOnLine as $tokenOnLine) {
if (!\in_array($tokenOnLine['code'], Tokens::$emptyTokens, true)) {
if (!\in_array($tokenOnLine['code'], Tokens::EMPTY_TOKENS, true)) {
$existCodeOnLine = true;
}
}
Expand Down Expand Up @@ -146,7 +146,7 @@
if ($nsStart) {
$nsEnd = $file->findNext([T_NS_SEPARATOR, T_STRING, T_WHITESPACE], $nsStart + 1, null, true);

$namespace = \trim(self::getContentsBetweenPtrs($file, $nsStart + 1, (int) $nsEnd));
$namespace = \trim(self::getContentsBetweenPtrs($file, $nsStart + 1, (int) $nsEnd + 1));
}

$declaredPtr = $file->findNext([T_CLASS, T_INTERFACE, T_TRAIT], 0);
Expand Down
6 changes: 3 additions & 3 deletions src/PhpCs/FiveLab/Sniffs/AbstractFunctionCallSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ abstract class AbstractFunctionCallSniff implements Sniff
{
public function register(): array
{
return Tokens::$functionNameTokens;
return Tokens::FUNCTION_NAME_TOKENS;
}

final public function process(File $phpcsFile, mixed $stackPtr): void
{
$tokens = $phpcsFile->getTokens();

$ignoreTokens = Tokens::$emptyTokens;
$ignoreTokens = Tokens::EMPTY_TOKENS;
$ignoreTokens[] = T_BITWISE_AND;

$specialKeywordPtr = $phpcsFile->findPrevious($ignoreTokens, $stackPtr - 1, null, true);
Expand All @@ -42,7 +42,7 @@ final public function process(File $phpcsFile, mixed $stackPtr): void
return;
}

$openParenthesisPtr = $phpcsFile->findNext(Tokens::$emptyTokens, $stackPtr + 1, null, true);
$openParenthesisPtr = $phpcsFile->findNext(Tokens::EMPTY_TOKENS, $stackPtr + 1, null, true);

if (!$openParenthesisPtr || $tokens[$openParenthesisPtr]['code'] !== T_OPEN_PARENTHESIS) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/PhpCs/FiveLab/Sniffs/Formatting/MultiLineSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function process(File $phpcsFile, mixed $stackPtr): void
return (string) $token['code'];
}, PhpCsUtils::getTokensOnLine($phpcsFile, $stmt['line']));

$diff = \array_values(\array_diff($lineTokens, Tokens::$emptyTokens));
$diff = \array_values(\array_diff($lineTokens, Tokens::EMPTY_TOKENS));

$then = \array_search(T_INLINE_THEN, $diff);
$else = \array_search(T_INLINE_ELSE, $diff);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function process(File $phpcsFile, mixed $stackPtr): void
return (string) $token['code'];
}, PhpCsUtils::getTokensOnLine($phpcsFile, $phpcsFile->getTokens()[$stackPtr]['line']));

$diff = \array_diff($tokens, Tokens::$emptyTokens);
$diff = \array_diff($tokens, Tokens::EMPTY_TOKENS);

if (1 === \count($diff)) {
$phpcsFile->addError(
Expand Down
4 changes: 2 additions & 2 deletions src/PhpCs/FiveLab/Sniffs/Formatting/ThrowSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function register(): array
public function process(File $phpcsFile, mixed $stackPtr): void
{
// Check blank lines before
$prevTokenPtr = $phpcsFile->findPrevious(Tokens::$emptyTokens, $stackPtr - 1, null, true);
$prevTokenPtr = $phpcsFile->findPrevious(Tokens::EMPTY_TOKENS, $stackPtr - 1, null, true);

$prevToken = $phpcsFile->getTokens()[$prevTokenPtr];
$diffLinesBefore = PhpCsUtils::getDiffLines($phpcsFile, (int) $prevTokenPtr, $stackPtr);
Expand Down Expand Up @@ -67,7 +67,7 @@ private function checkSprintfOnSameLine(File $phpcsFile, int $stackPtr): void
}

$endOfMessagePtr = $phpcsFile->findNext([T_COMMA, T_SEMICOLON], $openParenthesisPtr);
$sprintfTokenPtr = $phpcsFile->findNext([], $openParenthesisPtr, (int) $endOfMessagePtr, true, 'sprintf', true);
$sprintfTokenPtr = $phpcsFile->findNext([], $openParenthesisPtr, (int) $endOfMessagePtr, true, '\sprintf', true);

if ($sprintfTokenPtr) {
$tokens = $phpcsFile->getTokens();
Expand Down
3 changes: 3 additions & 0 deletions src/PhpCs/FiveLab/Sniffs/Formatting/UnusedImportsSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@

$import = $tokens[$currentStackPtr - 1]['content'];

$parts = \explode('\\', $import);
$import = \end($parts);

$importStackPtr = $stackPtr;

while ($currentStackPtr = $phpcsFile->findNext(T_USE, ++$currentStackPtr)) {

Check failure on line 62 in src/PhpCs/FiveLab/Sniffs/Formatting/UnusedImportsSniff.php

View workflow job for this annotation

GitHub Actions / Run PHP-Stan

Cannot use ++ on int|false.
if (1 === $tokens[$currentStackPtr]['column'] && 0 === $tokens[$currentStackPtr]['level']) {
$importStackPtr = $currentStackPtr;
}
Expand All @@ -79,7 +82,7 @@
return;
}

$pos++;

Check failure on line 85 in src/PhpCs/FiveLab/Sniffs/Formatting/UnusedImportsSniff.php

View workflow job for this annotation

GitHub Actions / Run PHP-Stan

Cannot use ++ on int<0, max>|false.
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ public function process(File $phpcsFile, mixed $stackPtr): void
}

// Check blank lines before statement
$prevTokenPtr = $phpcsFile->findPrevious(Tokens::$emptyTokens, $stackPtr - 1, null, true);
$prevTokenPtr = $phpcsFile->findPrevious(Tokens::EMPTY_TOKENS, $stackPtr - 1, null, true);
$prevToken = $phpcsFile->getTokens()[$prevTokenPtr];

if (($prevToken['code'] === T_EQUAL || $prevToken['code'] === T_RETURN || $prevToken['code'] === T_DOUBLE_ARROW) && $stackToken['code'] === T_MATCH) {
// Use "match" construction.
$firstTokenPtr = PhpCsUtils::findFirstTokenOnLine($phpcsFile, $stackToken['line']);
$prevTokenPtr = $phpcsFile->findPrevious(Tokens::$emptyTokens, $firstTokenPtr - 1, null, true);
$prevTokenPtr = $phpcsFile->findPrevious(Tokens::EMPTY_TOKENS, $firstTokenPtr - 1, null, true);
$prevToken = $phpcsFile->getTokens()[$prevTokenPtr];
}

Expand All @@ -92,14 +92,14 @@ public function process(File $phpcsFile, mixed $stackPtr): void

// Check blank lines after
$scopeCloserPtr = $stackToken['scope_closer'];
$nextTokenPtr = $phpcsFile->findNext(Tokens::$emptyTokens, $scopeCloserPtr + 1, null, true);
$nextTokenPtr = $phpcsFile->findNext(Tokens::EMPTY_TOKENS, $scopeCloserPtr + 1, null, true);

if ($nextTokenPtr) {
$nextToken = $phpcsFile->getTokens()[$nextTokenPtr];

if ($nextToken['code'] === T_SEMICOLON && $stackToken['code'] === T_MATCH) {
// Use "match" construction.
$nextTokenPtr = $phpcsFile->findNext(Tokens::$emptyTokens, $nextTokenPtr + 1, null, true);
$nextTokenPtr = $phpcsFile->findNext(Tokens::EMPTY_TOKENS, $nextTokenPtr + 1, null, true);
$nextToken = $nextTokenPtr ? $phpcsFile->getTokens()[$nextTokenPtr] : null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function process(File $phpcsFile, mixed $stackPtr): void
{
$tokens = $phpcsFile->getTokens();

$semicolonPtr = $phpcsFile->findNext(Tokens::$emptyTokens, $stackPtr + 1, null, true);
$semicolonPtr = $phpcsFile->findNext(Tokens::EMPTY_TOKENS, $stackPtr + 1, null, true);

if (!$semicolonPtr || $tokens[$semicolonPtr]['code'] !== T_SEMICOLON) {
// Not close root array. Skip.
Expand All @@ -55,7 +55,7 @@ public function process(File $phpcsFile, mixed $stackPtr): void
// Check before.
$firstTokenOnOpenerLinePtr = PhpCsUtils::findFirstTokenOnLine($phpcsFile, $tokens[$openerTokenPtr]['line']);

$prevTokenPtr = $phpcsFile->findPrevious(Tokens::$emptyTokens, $firstTokenOnOpenerLinePtr - 1, null, true);
$prevTokenPtr = $phpcsFile->findPrevious(Tokens::EMPTY_TOKENS, $firstTokenOnOpenerLinePtr - 1, null, true);
$prevToken = $tokens[$prevTokenPtr];

$diffLinesBefore = PhpCsUtils::getDiffLines($phpcsFile, (int) $prevTokenPtr, (int) $firstTokenOnOpenerLinePtr);
Expand All @@ -70,7 +70,7 @@ public function process(File $phpcsFile, mixed $stackPtr): void
}

// Check after
$nextTokenPtr = $phpcsFile->findNext(Tokens::$emptyTokens, $semicolonPtr + 1, null, true);
$nextTokenPtr = $phpcsFile->findNext(Tokens::EMPTY_TOKENS, $semicolonPtr + 1, null, true);

if ($nextTokenPtr) {
$nextToken = $tokens[$nextTokenPtr];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function processFunctionCall(File $phpcsFile, int $stackPtr, array $pa
private function checkBeforeCall(File $phpcsFile, int $stackPtr): void
{
$tokens = $phpcsFile->getTokens();
$prevTokenPtr = $phpcsFile->findPrevious(Tokens::$emptyTokens, $stackPtr - 1, null, true);
$prevTokenPtr = $phpcsFile->findPrevious(Tokens::EMPTY_TOKENS, $stackPtr - 1, null, true);

$possiblePrevTokens = [T_DOUBLE_COLON, T_COMMA];

Expand All @@ -62,14 +62,14 @@ private function checkBeforeCall(File $phpcsFile, int $stackPtr): void

// Find any token on prev line.
$firstTokenPtrOnLine = PhpCsUtils::findFirstTokenOnLine($phpcsFile, $tokens[$stackPtr]['line']);
$prevTokenPtr = $phpcsFile->findPrevious(Tokens::$emptyTokens, $firstTokenPtrOnLine - 1, null, true);
$prevTokenPtr = $phpcsFile->findPrevious(Tokens::EMPTY_TOKENS, $firstTokenPtrOnLine - 1, null, true);

if (false !== $prevTokenPtr) {
$prevToken = $tokens[$prevTokenPtr];

if ($prevToken['code'] === T_VARIABLE) {
// Call method on next line (multiline chain call).
$prevTokenPtr = (int) $phpcsFile->findPrevious(Tokens::$emptyTokens, $prevTokenPtr - 1, null, true);
$prevTokenPtr = (int) $phpcsFile->findPrevious(Tokens::EMPTY_TOKENS, $prevTokenPtr - 1, null, true);
$prevToken = $tokens[$prevTokenPtr];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private function processAfter(File $phpcsFile, int $stackPtr): void

$semicolonPtr = $phpcsFile->findNext([T_SEMICOLON], $stackPtr + 1);

$nextTokenPtr = $phpcsFile->findNext(Tokens::$emptyTokens, $semicolonPtr + 1, null, true);
$nextTokenPtr = $phpcsFile->findNext(Tokens::EMPTY_TOKENS, $semicolonPtr + 1, null, true);

if ($tokens[$nextTokenPtr]['code'] === T_CLOSE_CURLY_BRACKET) {
// End statement. Normal.
Expand Down Expand Up @@ -79,7 +79,7 @@ private function processBefore(File $phpcsFile, int $stackPtr): void
$token = $tokens[$stackPtr];

$firstTokenOnLine = PhpCsUtils::findFirstTokenOnLine($phpcsFile, $token['line']);
$prevTokenPtr = $phpcsFile->findPrevious(Tokens::$emptyTokens, (int) $firstTokenOnLine, null, true);
$prevTokenPtr = $phpcsFile->findPrevious(Tokens::EMPTY_TOKENS, (int) $firstTokenOnLine, null, true);

if ($tokens[$prevTokenPtr]['code'] === T_OPEN_CURLY_BRACKET) {
// Start statement. Normal.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ private function getNonEmptyTokensOnLine(File $phpcsFile, int $line): array
$tokens = PhpCsUtils::getTokensOnLine($phpcsFile, $line);

$tokens = \array_filter($tokens, static function (array $token): bool {
return !\in_array($token['code'], Tokens::$emptyTokens, true);
return !\in_array($token['code'], Tokens::EMPTY_TOKENS, true);
});

return \array_values($tokens);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;

abstract class SniffTestCase extends TestCase
abstract class AbstractSniffTestCase extends TestCase
{
protected Config $config;
protected Ruleset $ruleset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
namespace FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\Attributes;

use FiveLab\Component\CiRules\PhpCs\FiveLab\Sniffs\Attributes\ProhibitedAttributeSniff;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\SniffTestCase;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\AbstractSniffTestCase;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Test;

class ProhibitedAttributeSniffTest extends SniffTestCase
class ProhibitedAttributeSniffTest extends AbstractSniffTestCase
{
#[Test]
#[DataProvider('provideDataSet')]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
namespace FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\Commenting;

use FiveLab\Component\CiRules\PhpCs\FiveLab\Sniffs\Commenting\AnnotationsSniff;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\SniffTestCase;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\AbstractSniffTestCase;

class AnnotationsSniffTest extends SniffTestCase
class AnnotationsSniffTest extends AbstractSniffTestCase
{
protected function getSniffClass(): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
namespace FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\Commenting;

use FiveLab\Component\CiRules\PhpCs\FiveLab\Sniffs\Commenting\ClassPropertyDocSniff;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\SniffTestCase;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\AbstractSniffTestCase;

class ClassPropertyDocSniffTest extends SniffTestCase
class ClassPropertyDocSniffTest extends AbstractSniffTestCase
{
protected function getSniffClass(): string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/PhpCs/FiveLab/Sniffs/Commenting/CommentSniffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
namespace FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\Commenting;

use FiveLab\Component\CiRules\PhpCs\FiveLab\Sniffs\Commenting\CommentSniff;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\SniffTestCase;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\AbstractSniffTestCase;

class CommentSniffTest extends SniffTestCase
class CommentSniffTest extends AbstractSniffTestCase
{
protected function getSniffClass(): string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/PhpCs/FiveLab/Sniffs/Commenting/InheritdocSniffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
namespace FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\Commenting;

use FiveLab\Component\CiRules\PhpCs\FiveLab\Sniffs\Commenting\InheritdocSniff;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\SniffTestCase;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\AbstractSniffTestCase;

class InheritdocSniffTest extends SniffTestCase
class InheritdocSniffTest extends AbstractSniffTestCase
{
protected function getSniffClass(): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
namespace FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\Commenting;

use FiveLab\Component\CiRules\PhpCs\FiveLab\Sniffs\Commenting\MagicMethodSniff;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\SniffTestCase;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\AbstractSniffTestCase;

class MagicMethodSniffTest extends SniffTestCase
class MagicMethodSniffTest extends AbstractSniffTestCase
{
protected function getSniffClass(): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
namespace FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\Commenting;

use FiveLab\Component\CiRules\PhpCs\FiveLab\Sniffs\Commenting\ProhibitedDocCommentsSniff;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\SniffTestCase;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\AbstractSniffTestCase;

class ProhibitedDocCommentsSniffTest extends SniffTestCase
class ProhibitedDocCommentsSniffTest extends AbstractSniffTestCase
{
protected function getSniffClass(): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
namespace FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\Commenting;

use FiveLab\Component\CiRules\PhpCs\FiveLab\Sniffs\Commenting\ProhibitedInheritdocOnlySniff;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\SniffTestCase;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\AbstractSniffTestCase;

class ProhibitedInheritdocOnlySniffTest extends SniffTestCase
class ProhibitedInheritdocOnlySniffTest extends AbstractSniffTestCase
{
protected function getSniffClass(): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
namespace FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\Commenting;

use FiveLab\Component\CiRules\PhpCs\FiveLab\Sniffs\Commenting\WhiteSpaceAfterCommentStartSniff;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\SniffTestCase;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\AbstractSniffTestCase;

class WhiteSpaceAfterCommentStartSniffTest extends SniffTestCase
class WhiteSpaceAfterCommentStartSniffTest extends AbstractSniffTestCase
{
protected function getSniffClass(): string
{
Expand Down
4 changes: 2 additions & 2 deletions tests/PhpCs/FiveLab/Sniffs/Formatting/DeclareSniffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
namespace FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\Formatting;

use FiveLab\Component\CiRules\PhpCs\FiveLab\Sniffs\Formatting\DeclareSniff;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\SniffTestCase;
use FiveLab\Component\CiRules\Tests\PhpCs\FiveLab\Sniffs\AbstractSniffTestCase;

class DeclareSniffTest extends SniffTestCase
class DeclareSniffTest extends AbstractSniffTestCase
{
protected function getSniffClass(): string
{
Expand Down
Loading
Loading