-
Notifications
You must be signed in to change notification settings - Fork 60
6.x remove underscore from methods #310
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
Conversation
3094cfe to
9a6d52f
Compare
9a6d52f to
5026929
Compare
8f5b45c to
3d75cf2
Compare
| } | ||
| $process = Process::fromShellCommandline($command); | ||
| $process->setEnv($_ENV); | ||
| $process->setTimeout(null); |
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 symfony process utility has a default 60 second timeout for commands it runs. Since it can take way longer for rector to finish this is the best way to go.
composer.json
Outdated
| "cakephp/console": "^5.1.5", | ||
| "nette/utils": "^4.0", | ||
| "rector/rector": "dev-main", | ||
| "symfony/process": "^5.4|^6.0|^7.0", |
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 guess we can drop 5.4 here since cake 5 requires php 8+
markstory
left a comment
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 think if we're going to do these kinds of refactors this is the best way to do it.
| return static::CODE_ERROR; | ||
| } | ||
| $io->success('Rector applied successfully'); | ||
| $io->success('🎉 Upgrade complete! 🎉'); |
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.
Very nice 👏
| 'Cake\View\Widget\RadioWidget' => ['_renderInput', '_renderLabel', '_isDisabled'], | ||
| 'Cake\View\Widget\CheckboxWidget' => ['_isChecked'], | ||
| 'Cake\View\Widget\WidgetLocator' => ['_resolveWidget'], | ||
| ], |
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.
Wow that is quite the list 👏
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 hope you now understand why i want to make these changes 😁
* remove underscores from collection package methods via rector * remove underscores from command package methods via rector * remove underscores from console package methods via rector * remove underscores from controller package methods via rector * remove underscores from core package methods via rector * refactor static return type config * re-add trait methods for cake6 config * adjust SimpleStaticType config * remove underscores from database package methods via rector * remove underscores from datasource package methods via rector * remove underscores from error package methods via rector * remove underscores from event package methods via rector * remove underscores from form package methods via rector * remove underscores from http package methods via rector * remove underscores from I18N package methods via rector * remove underscores from Log package methods via rector * remove underscores from mailer package methods via rector * remove underscores from network package methods via rector * remove underscores from orm package methods via rector * remove underscores from routing package methods via rector * remove underscores from testsuite package methods via rector * remove underscores from utility package methods via rector * remove underscores from validation package methods via rector * remove underscores from view package methods via rector * add symfony process as a command wrapper for rector * fix tests with wrong assumptions about --dry-run rector exit codes * use tagged version of rector * adjust symfony/process dependency range
Refs: #309