Skip to content
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

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

kenjis
Copy link
Member

@kenjis kenjis commented Sep 25, 2023

Description
No need to be public.

Checklist:

  • Securely signed commits
  • [] Component(s) with PHPDoc blocks, only if necessary or adds value
  • [] Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

Comment on lines 45 to 49
*
* @deprecated 4.4.2 Should be protected.
*/
public static $readline_support = false;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
*
* @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;

Copy link
Member Author

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.

Comment on lines 55 to 57
* @deprecated 4.4.2 Should be protected.
*/
public static $wait_msg = 'Press any key to continue...';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @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...';

Comment on lines 31 to 32
- The public property ``CLI::$readline_support`` and ``CLI::$wait_msg`` are
deprecated. These methods will be protected.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- 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`.

Copy link
Member

@MGatner MGatner left a 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.

@kenjis kenjis force-pushed the fix-CLI-readline_support branch from f271c3b to 1c5ff8d Compare October 10, 2023 21:05
@kenjis
Copy link
Member Author

kenjis commented Oct 10, 2023

@mostafakhudair @MGatner I added @TODO as reminder.

@kenjis kenjis merged commit 155859b into codeigniter4:develop Oct 11, 2023
61 checks passed
@kenjis kenjis deleted the fix-CLI-readline_support branch October 11, 2023 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants