[Console] removed unused $position parameter in Shell::autocompleter() method.
This commit is contained in:
parent
ef6297afdb
commit
a7f857da87
@ -107,10 +107,10 @@ EOF;
|
|||||||
/**
|
/**
|
||||||
* Tries to return autocompletion for the current entered text.
|
* Tries to return autocompletion for the current entered text.
|
||||||
*
|
*
|
||||||
* @param string $text The last segment of the entered text
|
* @param string $text The last segment of the entered text
|
||||||
* @param integer $position The current position
|
* @return Boolean|array A list of guessed strings or true
|
||||||
*/
|
*/
|
||||||
private function autocompleter($text, $position)
|
private function autocompleter($text)
|
||||||
{
|
{
|
||||||
$info = readline_info();
|
$info = readline_info();
|
||||||
$text = substr($info['line_buffer'], 0, $info['end']);
|
$text = substr($info['line_buffer'], 0, $info['end']);
|
||||||
|
Reference in New Issue
Block a user