From bb98ac761fad08204cb7ad9fac9e6b22e283f5e0 Mon Sep 17 00:00:00 2001 From: Matt Reishus Date: Sun, 1 Sep 2013 17:15:51 -0500 Subject: [PATCH] ConsoleInput::_canReadLine change from private -> protected --- lib/Cake/Console/ConsoleInput.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Console/ConsoleInput.php b/lib/Cake/Console/ConsoleInput.php index a665426ab..04ea6ced5 100644 --- a/lib/Cake/Console/ConsoleInput.php +++ b/lib/Cake/Console/ConsoleInput.php @@ -41,7 +41,7 @@ class ConsoleInput { * * @var bool */ - private $__canReadline; + protected $_canReadline; /** * Constructor @@ -49,7 +49,7 @@ class ConsoleInput { * @param string $handle The location of the stream to use as input. */ public function __construct($handle = 'php://stdin') { - $this->__canReadline = extension_loaded('readline') && $handle == 'php://stdin' ? true : false; + $this->_canReadline = extension_loaded('readline') && $handle == 'php://stdin' ? true : false; $this->_input = fopen($handle, 'r'); } @@ -59,7 +59,7 @@ class ConsoleInput { * @return mixed The value of the stream */ public function read() { - if ($this->__canReadline) { + if ($this->_canReadline) { $line = readline(''); if (!empty($line)) { readline_add_history($line);