Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bc67128

Browse files
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円[42m033円[2K".str_repeat('', $paddingLength); // Make the entire line have a green background
184+
echo "033円[42m033円[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)

AltStyle によって変換されたページ (->オリジナル) /