Skip to content

Conversation

@GeniJaho
Copy link
Collaborator

Fixes #319.

  • Adds one more code sample to EloquentWhereTypeHintClosureParameterRector
  • If the builder instance is an Eloquent Model, the type hint will be \Illuminate\Contracts\Database\Eloquent\Builder
  • If the builder instance is a Query Builder, the type hint will be Illuminate\Contracts\Database\Query\Builder

@GeniJaho GeniJaho merged commit 79d3761 into main Apr 8, 2025
5 checks passed
@GeniJaho GeniJaho deleted the fix-eloquent-where-type-hint branch April 8, 2025 22:22
@brunogaspar brunogaspar mentioned this pull request Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] EloquentWhereTypeHintClosureParameterRector The example does not match the actual implementation

3 participants