Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR borrows and extends code from
spatie/ray
to implement arector/rector
rule for removing calls toray()
,rd()
,Ray::*
and->ray()
.It adds a
clean
subcommand to thex-ray
command:The
clean
command uses rector to remove references to the functions/methods listed above. In the originalspatie/ray
code, some of the possible functions/methods weren't accounted for; this PR updates the code to account for all possibleray
references.This PR also bumps several dependency versions, drops support for PHP versions below 8.1 and drops
symfony/*
support for versions below6.x
. As such, a new major version release is likely best for releasing the functionality in this PR.The ultimate objective for this PR is to remove the related functionality from
spatie/ray
to keep concerns separate; I believe that this functionality belongs in thespatie/x-ray
package instead of thespatie/ray
package. Theray
package should only contain functionality related toRay
, in our opinion.ping @freekmurze - any thoughts on this?