Skip to content

Commit

Permalink
Allow $text param to be null for write()
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksagona committed Sep 15, 2015
1 parent 94fe761 commit eee1951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ public function prompt($prompt, array $options = null, $caseSensitive = false, $
* @param string $indent
* @return Console
*/
public function write($text, $indent = null)
public function write($text = null, $indent = null)
{
if ($this->width != 0) {
$lines = (strlen($text) > $this->width) ?
Expand Down

0 comments on commit eee1951

Please sign in to comment.