chore(deps-dev): update rector/rector requirement from 2.5.9 to 2.6.1 in the composer-dependencies group - #10438
Conversation
Updates the requirements on [rector/rector](https://github.com/rectorphp/rector) to permit the latest version. Updates `rector/rector` to 2.6.1 - [Release notes](https://github.com/rectorphp/rector/releases) - [Commits](rectorphp/rector@2.5.9...2.6.1) --- updated-dependencies: - dependency-name: rector/rector dependency-version: 2.6.1 dependency-type: direct:development dependency-group: composer-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
|
@samsonasik, any recommendations on how we should handle deprecated rules? Is simple removal okay, or should we migrate? |
|
@michalsn if the rules are useful for us, I think we can copy the original rule into utils/src/Rector, or probably better, create new repo for rules that useful for us. If the rules are not useful for us, clean up is ok. |
|
Just want to add. I cloned this locally trying to fix the red. I followed rector's suggestions to delete those skips since it says those are not reached. However, upon removing the skips, those get applied instead. So, its claim is false. |
|
Thanks @samsonasik. The question is: should we leave it here or eventually introduce it into our CS, since this is more of a coding-style preference and that's why it was deprecated? My preference is to move it into the CS rules, but I'm not sure how hard it would be. As I understand it, the schema for this was "simple": count($array) === 0 // $array === []
count($array) > 0 // $array !== []
! count($array) // $array === []@paulbalandan any thoughts? TBH, I'm also fine with just removing it and calling it a day. |
|
comparing to |
Yes, those skips have to stay. |
|
I think that should go and reintroduce it as a CS rule. I can look at it later. |
Updates the requirements on rector/rector to permit the latest version.
Updates
rector/rectorto 2.6.1Release notes
Sourced from rector/rector's releases.
... (truncated)
Commits
b8e68f0Rector 2.6.18d4664eUpdated Rector to commit 16be33c1c2364d51038752a299fce01043d42576834ed36Updated Rector to commit 4e11a4088c0634076742b71dc9db4cfbeab4a20777f9eecUpdated Rector to commit 4e11a4088c0634076742b71dc9db4cfbeab4a20755176b4Updated Rector to commit 4e11a4088c0634076742b71dc9db4cfbeab4a207c529f35Updated Rector to commit 72f8056755dc28dd1a8ab8f39900259f129ebae8080ed0fUpdated Rector to commit 72f8056755dc28dd1a8ab8f39900259f129ebae830c1e33Updated Rector to commit 72f8056755dc28dd1a8ab8f39900259f129ebae88e262e1Updated Rector to commit 952266b6d64f923f9d6d4390e423e4ab65a953c62ca9c01Updated Rector to commit da48be85d84c065d1f018c9074694980d2351e77Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions