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

fix: refactor only when DB::raw is inside of a *Raw method #5

Merged
merged 2 commits into from
Dec 23, 2023

Conversation

remarkablemark
Copy link
Owner

What is the motivation for this pull request?

fix: refactor only when DB::raw is inside of a *Raw method

https://laravel.com/docs/10.x/queries#raw-expressions

What is the current behavior?

Rector refactors DB::select(DB::raw(...))

What is the new behavior?

Rector refactors DB::table(..)->selectRaw(DB::raw(...))->get()

Checklist:

@remarkablemark remarkablemark added the bug Something isn't working label Dec 23, 2023
@remarkablemark remarkablemark self-assigned this Dec 23, 2023
@remarkablemark remarkablemark merged commit 2b9e7a6 into master Dec 23, 2023
10 checks passed
@remarkablemark remarkablemark deleted the fix/rector branch December 23, 2023 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant