|
32 | 32 | */ |
33 | 33 | class CLI |
34 | 34 | { |
35 | | - /** |
36 | | - * Is the readline library on the system? |
37 | | - * |
38 | | - * @var bool |
39 | | - * |
40 | | - * @deprecated 4.4.2 Should be protected, and no longer used. |
41 | | - * @TODO Fix to camelCase in the next major version. |
42 | | - */ |
43 | | - public static $readline_support = false; |
44 | | - |
45 | 35 | /** |
46 | 36 | * The message displayed at prompts. |
47 | | - * |
48 | | - * @var string |
49 | | - * |
50 | | - * @deprecated 4.4.2 Should be protected. |
51 | | - * @TODO Fix to camelCase in the next major version. |
52 | 37 | */ |
53 | | - public static $wait_msg = 'Press any key to continue...'; |
| 38 | + protected static string $waitMsg = 'Press any key to continue...'; |
54 | 39 |
|
55 | 40 | /** |
56 | 41 | * Has the class already been initialized? |
@@ -159,11 +144,6 @@ class CLI |
159 | 144 | public static function init() |
160 | 145 | { |
161 | 146 | if (is_cli()) { |
162 | | - // Readline is an extension for PHP that makes interactivity with PHP |
163 | | - // much more bash-like. |
164 | | - // http://www.php.net/manual/en/readline.installation.php |
165 | | - static::$readline_support = extension_loaded('readline'); |
166 | | - |
167 | 147 | // clear segments & options to keep testing clean |
168 | 148 | static::$segments = []; |
169 | 149 | static::$options = []; |
@@ -522,21 +502,11 @@ public static function wait(int $seconds, bool $countdown = false) |
522 | 502 | } elseif ($seconds > 0) { |
523 | 503 | sleep($seconds); |
524 | 504 | } else { |
525 | | - static::write(static::$wait_msg); |
| 505 | + static::write(static::$waitMsg); |
526 | 506 | static::$io->input(); |
527 | 507 | } |
528 | 508 | } |
529 | 509 |
|
530 | | - /** |
531 | | - * if operating system === windows |
532 | | - * |
533 | | - * @deprecated 4.3.0 Use `is_windows()` instead |
534 | | - */ |
535 | | - public static function isWindows(): bool |
536 | | - { |
537 | | - return is_windows(); |
538 | | - } |
539 | | - |
540 | 510 | /** |
541 | 511 | * Enter a number of empty lines |
542 | 512 | * |
|
0 commit comments