Skip to content

Force an integer for the return of Shell::columns(). In cases such as a ...#42

Merged
jlogsdon merged 2 commits into
wp-cli:masterfrom
dllh:master
Jan 15, 2014
Merged

Force an integer for the return of Shell::columns(). In cases such as a ...#42
jlogsdon merged 2 commits into
wp-cli:masterfrom
dllh:master

Conversation

@dllh
Copy link
Copy Markdown
Contributor

@dllh dllh commented Jan 14, 2014

...cron job for which there's actually not a terminal, this call will return an empty string, which in turn causes $size in Bar::display() to be negative, which in turn causes a php warning because the second parameter to str_repeat() must be >= 0.

dllh added 2 commits January 14, 2014 14:28
… a cron job for which there's actually not a terminal, this call will return an empty string, which in turn causes $size in Bar::display() to be negative, which in turn causes a php warning because the second parameter to str_repeat() must be >= 0.
…as the second parameter sent to str_repeat(), which results in a php warning.
@jlogsdon
Copy link
Copy Markdown
Contributor

So it would. Thanks for the fix!

jlogsdon added a commit that referenced this pull request Jan 15, 2014
Force an integer for the return of Shell::columns(). In cases such as a ...
@jlogsdon jlogsdon merged commit e187756 into wp-cli:master Jan 15, 2014
@jlogsdon jlogsdon mentioned this pull request Jan 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants