Skip to content

Commit

Permalink
Fix phpstan-strict-rules v1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Apr 6, 2024
1 parent 7732b14 commit 6e7f915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demos/_includes/Demo.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function extractCodeFromClosure(\Closure $fx): string

$minIndent = min(array_map(static function (string $l): int {
return strlen($l) - strlen(ltrim($l, ' '));
}, array_filter($codeArr)));
}, array_filter($codeArr, static fn ($v) => $v !== '')));

return implode("\n", array_map(static function (string $l) use ($minIndent) {
return substr($l, $minIndent);
Expand Down

0 comments on commit 6e7f915

Please sign in to comment.