Skip to content

Commit 69eab3f

Browse files
committed
PEAR/MultiLineAssignment: fix incorrect parameter passed to findPrevious()
1 parent 553b55f commit 69eab3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Standards/PEAR/Sniffs/Formatting/MultiLineAssignmentSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function process(File $phpcsFile, $stackPtr)
6262
}
6363

6464
// Make sure it is the first thing on the line, otherwise we ignore it.
65-
$prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), false, true);
65+
$prev = $phpcsFile->findPrevious(T_WHITESPACE, ($stackPtr - 1), null, true);
6666
if ($prev === false) {
6767
// Bad assignment.
6868
return;

0 commit comments

Comments
 (0)