Skip to content

Commit

Permalink
Run the tools
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Feb 20, 2024
1 parent c3e3947 commit d25cd0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fixer/ChainedMethodBlockFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private function fixLeadingWhitespace(Tokens $tokens, int $start): void

if ($var === $prevVar) {
$removeNewLine = true;
} elseif (str_starts_with($prevVar, "$var->")) {
} elseif ($prevVar && str_starts_with($prevVar, "$var->")) {
$addNewLine = true;
}
}
Expand Down

0 comments on commit d25cd0e

Please sign in to comment.