-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: [CLI] make public properties deprecated #7976
Conversation
system/CLI/CLI.php
Outdated
* | ||
* @deprecated 4.4.2 Should be protected. | ||
*/ | ||
public static $readline_support = false; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* | |
* @deprecated 4.4.2 Should be protected. | |
*/ | |
public static $readline_support = false; | |
* | |
* @deprecated 4.4.2 it will be removed and replaced with | |
* the protected property `CLI::$readlineSupport`. | |
*/ | |
public static $readline_support = false; | |
protected static $readlineSupport = false; | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The property name is not good, but I don't have a plan to change it.
The future is uncertain.
system/CLI/CLI.php
Outdated
* @deprecated 4.4.2 Should be protected. | ||
*/ | ||
public static $wait_msg = 'Press any key to continue...'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @deprecated 4.4.2 Should be protected. | |
*/ | |
public static $wait_msg = 'Press any key to continue...'; | |
* @deprecated 4.4.2 it will be removed and replaced with | |
* the protected property `CLI::$waitingMessage`. | |
*/ | |
public static $wait_msg = 'Press any key to continue...'; | |
protected static $waitingMessage = 'Press any key to continue...'; |
- The public property ``CLI::$readline_support`` and ``CLI::$wait_msg`` are | ||
deprecated. These methods will be protected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The public property ``CLI::$readline_support`` and ``CLI::$wait_msg`` are | |
deprecated. These methods will be protected. | |
- The public property ``CLI::$readline_support`` is deprecated, and it | |
will be replaced with the protected property ``CLI::$readlineSupport`. | |
- The public property ``CLI::$wait_msg`` is deprecated, and it will | |
be replaced with the protected property ``CLI::$waitingMessage`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like @mostafakhudair 's suggestions but since this class isn't final
they introduce another layer of breaking changes. Consider for next major version.
No need to be public.
f271c3b
to
1c5ff8d
Compare
@mostafakhudair @MGatner I added |
Description
No need to be public.
Checklist: