Skip to content

Commit d16f099

Browse files
Merge pull request #103 from VincentLanglet/fix
💄 Minor fix
2 parents 0856a63 + 3a8dc1e commit d16f099

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

SymfonyCustom/Sniffs/Arrays/ArrayDeclarationSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function processSingleLineArray(File $phpcsFile, int $stackPtr, int $star
142142
$fix = $phpcsFile->addFixableError(
143143
'Expected 1 space between "%s" and double arrow; %s found',
144144
$nextArrow,
145-
'SpaceAfterDoubleArrow',
145+
'SpaceBeforeDoubleArrow',
146146
[$tokens[$nextArrow - 1]['content'], $spaceBefore]
147147
);
148148

SymfonyCustom/Sniffs/Errors/UserDeprecatedSniff.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ public function process(File $phpcsFile, $stackPtr): void
5252
continue;
5353
}
5454

55-
if ('@' === $tokens[$stackPtr - 2]['content']
56-
&& 'T_NS_SEPARATOR' === $tokens[$stackPtr - 1]['type']
57-
) {
55+
if ('@' === $tokens[$stackPtr - 2]['content'] && T_NS_SEPARATOR === $tokens[$stackPtr - 1]['code']) {
5856
continue;
5957
}
6058

0 commit comments

Comments
 (0)