Skip to content

Commit bc67128

Browse files
authored
Merge pull request #81 from laravel/fix-str-repeat-issue
fixes #80
2 parents e3487b2 + f04b974 commit bc67128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/InstallCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private function outro(): void
181181
$text = 'Enjoy the boost 🚀 Next steps: ';
182182
$paddingLength = (int) (floor(($this->terminal->cols() - mb_strlen($text.$label)) / 2)) - 2;
183183

184-
echo "\033[42m\033[2K".str_repeat(' ', $paddingLength); // Make the entire line have a green background
184+
echo "\033[42m\033[2K".str_repeat(' ', max(0, $paddingLength)); // Make the entire line have a green background
185185
echo $this->black($this->bold($text.$link)).$this->reset(PHP_EOL).$this->reset(PHP_EOL);
186186
}
187187

0 commit comments

Comments
 (0)