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
2 changes: 0 additions & 2 deletions MO4/Sniffs/Arrays/ArrayDoubleArrowAlignmentSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class ArrayDoubleArrowAlignmentSniff implements Sniff
*
* @see Tokens.php
*/
#[\Override]
public function register(): array
{
return $this->arrayTokens;
Expand All @@ -69,7 +68,6 @@ public function register(): array
* the stack passed in $tokens.
*
*/
#[\Override]
public function process(File $phpcsFile, $stackPtr): void
{
$tokens = $phpcsFile->getTokens();
Expand Down
2 changes: 0 additions & 2 deletions MO4/Sniffs/Arrays/MultiLineArraySniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class MultiLineArraySniff implements Sniff
*
* @see Tokens.php
*/
#[\Override]
public function register(): array
{
return $this->arrayTokens;
Expand All @@ -66,7 +65,6 @@ public function register(): array
* the stack passed in $tokens.
*
*/
#[\Override]
public function process(File $phpcsFile, $stackPtr): void
{
$tokens = $phpcsFile->getTokens();
Expand Down
2 changes: 0 additions & 2 deletions MO4/Sniffs/Commenting/PropertyCommentSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ public function __construct()
*
* @throws RuntimeException
*/
#[\Override]
protected function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScope): void
{
$find = [
Expand Down Expand Up @@ -244,7 +243,6 @@ protected function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScop
* token was found.
*
*/
#[\Override]
protected function processTokenOutsideScope(File $phpcsFile, $stackPtr): void
{
}
Expand Down
1 change: 0 additions & 1 deletion MO4/Sniffs/Formatting/AlphabeticalUseStatementsSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ class AlphabeticalUseStatementsSniff extends UseDeclarationSniff
* the stack passed in $tokens.
*
*/
#[\Override]
public function process(File $phpcsFile, $stackPtr): void
{
if (!\in_array($this->order, self::SUPPORTED_ORDERING_METHODS, true)) {
Expand Down
2 changes: 0 additions & 2 deletions MO4/Sniffs/Formatting/UnnecessaryNamespaceUsageSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ class UnnecessaryNamespaceUsageSniff implements Sniff
*
* @see Tokens.php
*/
#[\Override]
public function register(): array
{
return [T_CLASS];
Expand All @@ -77,7 +76,6 @@ public function register(): array
*
* @throws RuntimeException
*/
#[\Override]
public function process(File $phpcsFile, $stackPtr): void
{
$docCommentTags = [
Expand Down
2 changes: 0 additions & 2 deletions MO4/Sniffs/Strings/VariableInDoubleQuotedStringSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ class VariableInDoubleQuotedStringSniff implements Sniff
*
* @see Tokens.php
*/
#[\Override]
public function register(): array
{
return [T_DOUBLE_QUOTED_STRING];
Expand All @@ -60,7 +59,6 @@ public function register(): array
* was found.
*
*/
#[\Override]
public function process(File $phpcsFile, $stackPtr): void
{
$varRegExp = '/\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*(?:\->[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*|\[[^\]]*\])?/';
Expand Down
2 changes: 0 additions & 2 deletions MO4/Sniffs/WhiteSpace/ConstantSpacingSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ class ConstantSpacingSniff implements Sniff
*
* @see Tokens.php
*/
#[\Override]
public function register(): array
{
return $this->arrayTokens;
Expand All @@ -64,7 +63,6 @@ public function register(): array
* the stack passed in $tokens.
*
*/
#[\Override]
public function process(File $phpcsFile, $stackPtr): void
{
$tokens = $phpcsFile->getTokens();
Expand Down
2 changes: 0 additions & 2 deletions MO4/Sniffs/WhiteSpace/MultipleEmptyLinesSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class MultipleEmptyLinesSniff implements Sniff
*
* @see Tokens.php
*/
#[\Override]
public function register(): array
{
return [
Expand All @@ -45,7 +44,6 @@ public function register(): array
*
* @return void|int
*/
#[\Override]
public function process(File $phpcsFile, $stackPtr)
{
$tokens = $phpcsFile->getTokens();
Expand Down
2 changes: 0 additions & 2 deletions MO4/Tests/AbstractMo4SniffUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ abstract class AbstractMo4SniffUnitTest extends AbstractSniffTestCase
*
* @throws RuntimeException
*/
#[\Override]
protected function getErrorList(string $testFile = ''): array
{
return $this->getRecordForTestFile($testFile, $this->expectedErrorList);
Expand All @@ -86,7 +85,6 @@ protected function getErrorList(string $testFile = ''): array
*
* @throws RuntimeException
*/
#[\Override]
protected function getWarningList(string $testFile = ''): array
{
return $this->getRecordForTestFile($testFile, $this->expectedWarningList);
Expand Down
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"psalm/plugin-phpunit": "^0.19",
"sabre/event": ">= 5.1.6",
"symfony/filesystem": ">= 5.4.45",
"symfony/polyfill-php83": "^1.32",
"vimeo/psalm": ">= 6.0.0 < 6.15.0"
},
"config": {
Expand Down
4 changes: 4 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@
<plugins>
<pluginClass class="Psalm\PhpUnitPlugin\Plugin" />
</plugins>

<issueHandlers>
<MissingOverrideAttribute errorLevel="info"/>
</issueHandlers>
</psalm>
Loading