Skip to content

Commit 1db1da4

Browse files
committed
fix php8 compatibility
1 parent 60fb041 commit 1db1da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EcgM2/Sniffs/Blocks/SetTemplateInBlockSniff.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function process(File $phpcsFile, $stackPtr)
4242
}
4343

4444
$error = $this->message . ' Found: %s';
45-
$phpcsFile->addWarning($error, $line, 'Found', $token);
45+
$phpcsFile->addWarning($error, $line, 'Found', [$token]);
4646
}
4747
}
4848

0 commit comments

Comments
 (0)