Skip to content

Commit 155859b

Browse files
authored
Merge pull request #7976 from kenjis/fix-CLI-readline_support
docs: [CLI] make public properties deprecated
2 parents 815b802 + dc84d18 commit 155859b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

system/CLI/CLI.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,19 @@ class CLI
4242
* Is the readline library on the system?
4343
*
4444
* @var bool
45+
*
46+
* @deprecated 4.4.2 Should be protected.
47+
* @TODO Fix to camelCase in the next major version.
4548
*/
4649
public static $readline_support = false;
4750

4851
/**
4952
* The message displayed at prompts.
5053
*
5154
* @var string
55+
*
56+
* @deprecated 4.4.2 Should be protected.
57+
* @TODO Fix to camelCase in the next major version.
5258
*/
5359
public static $wait_msg = 'Press any key to continue...';
5460

@@ -63,6 +69,8 @@ class CLI
6369
* Foreground color list
6470
*
6571
* @var array<string, string>
72+
*
73+
* @TODO Fix to camelCase in the next major version.
6674
*/
6775
protected static $foreground_colors = [
6876
'black' => '0;30',
@@ -88,6 +96,8 @@ class CLI
8896
* Background color list
8997
*
9098
* @var array<string, string>
99+
*
100+
* @TODO Fix to camelCase in the next major version.
91101
*/
92102
protected static $background_colors = [
93103
'black' => '40',

user_guide_src/source/changelogs/v4.4.2.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ Deprecations
3232
- **Filters:** The Auto-Discovery for Filters and ``Filters::discoverFilters()``
3333
is deprecated. Use :ref:`registrars` instead. See :ref:`modules-filters` for
3434
details.
35+
- **CLI:** The public property ``CLI::$readline_support`` and ``CLI::$wait_msg``
36+
are deprecated. These methods will be protected.
3537

3638
Bugs Fixed
3739
**********

0 commit comments

Comments
 (0)