Skip to content

Commit

Permalink
equal 0 instead of is_null
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-xz committed Mar 2, 2024
1 parent 2891ceb commit 27ce2a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Formatters/Stylish.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
function createEmptySpace(int $depth, int $offset = 0, string $separator = ' ')
{
$emptySpaceWithoutSymbol = str_repeat($separator, $depth);
if (is_null($offset)) {
if ($offset === 0) {
return $emptySpaceWithoutSymbol;
}
return substr($emptySpaceWithoutSymbol, $offset, null);
Expand Down

0 comments on commit 27ce2a6

Please sign in to comment.