Skip to content
Permalink
Browse files

ConsoleInput::_canReadLine change from private -> protected

  • Loading branch information...
Matt Reishus
Matt Reishus committed Sep 1, 2013
1 parent 3b057cb commit bb98ac761fad08204cb7ad9fac9e6b22e283f5e0
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Console/ConsoleInput.php
@@ -41,15 +41,15 @@ class ConsoleInput {
*
* @var bool
*/
private $__canReadline;
protected $_canReadline;
/**
* Constructor
*
* @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 @@ public function __construct($handle = 'php://stdin') {
* @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);

0 comments on commit bb98ac7

Please sign in to comment.
You can’t perform that action at this time.