diff --git a/phpcs.xml b/phpcs.xml index 99478d5a..c88f737e 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -34,7 +34,7 @@ */concept/city-office/* */concept/windowing-system/* - + */.meta/*\.php */concept/* */hello-world/* @@ -44,7 +44,7 @@ - + */*Test\.php */.meta/*\.php src/* diff --git a/src/Sniffs/StrictTypes/ExplainStrictTypesSniff.php b/src/Exercism/Sniffs/StrictTypes/ExplainStrictTypesSniff.php similarity index 96% rename from src/Sniffs/StrictTypes/ExplainStrictTypesSniff.php rename to src/Exercism/Sniffs/StrictTypes/ExplainStrictTypesSniff.php index 32ee71e2..374b3313 100644 --- a/src/Sniffs/StrictTypes/ExplainStrictTypesSniff.php +++ b/src/Exercism/Sniffs/StrictTypes/ExplainStrictTypesSniff.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Exercism\Sniffs\StrictTypes; +namespace Exercism\Exercism\Sniffs\StrictTypes; use PHP_CodeSniffer\Files\File; use PHP_CodeSniffer\Fixer; @@ -57,7 +57,7 @@ public function process(File $phpcsFile, $stackPtr): void $phpcsFile->addFixableError( 'Missing explanation of declaration of strict types.', $stackPtr - 1, - self::class + 'Missing' ); $this->fix(); }