Skip to content

Commit 134583f

Browse files
authored
tiny type bug causing misleading issue message
1 parent cab2261 commit 134583f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Inpsyde/Sniffs/CodeQuality/FunctionBodyStartSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private function checkBodyStart(
9595
$startWithComment = in_array($tokens[$bodyStart]['code'], Tokens::$emptyTokens, true);
9696

9797
if (!$startWithComment && ($isMultiLineDeclare || $isSingleLineSignature)) {
98-
$where = $isSingleLineSignature === 'SingleLineSignature'
98+
$where = $isSingleLineSignature
9999
? 'with single-line signature and open curly bracket on same line'
100100
: 'where arguments declaration spans across multiple lines';
101101
$code = $isSingleLineSignature

0 commit comments

Comments
 (0)