Replies: 2 comments 11 replies
|
Hi, could you provide full rule? |
2 replies
|
I just found https://github.com/rectorphp/rector-laravel/blob/main/src/Rector/MethodCall/ChangeQueryWhereDateValueWithCarbonRector.php! I need to call This solved my problem: |
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
We have a deprecated method that is actually replaced with two different method calls. I'm not sure how to return as returning an array from MethodCall_ node throws an error in the traverse:
Rule: https://github.com/palantirnet/drupal-rector/blob/101d36381b953a44eb2c34c6f1f9e6d1530d3209/src/Rector/Deprecation/UiHelperTraitDrupalPostFormRector.php
Code sample example:
With this:
It errors if I return an array and not a single node. Maybe there is a node class I am missing?
All reactions