Skip to content

Commit

Permalink
Assume custom builders are not generic (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
devfrey authored Oct 25, 2024
1 parent 89d7f8e commit be68e13
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Eloquent/AddGenericHasBuilderTraitRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private function createTraitUse(FullyQualified $builderClassName): TraitUse
new Doc(
<<<PHPDOC
/**
* @use \Illuminate\Database\Eloquent\HasBuilder<{$builderClassName->toCodeString()}<\$this>>
* @use \Illuminate\Database\Eloquent\HasBuilder<{$builderClassName->toCodeString()}>
*/
PHPDOC,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use Illuminate\Database\Eloquent\Model;
class Comment extends Model
{
/**
* @use \Illuminate\Database\Eloquent\HasBuilder<\App\Models\Builders\FooBuilder<$this>>
* @use \Illuminate\Database\Eloquent\HasBuilder<\App\Models\Builders\FooBuilder>
*/
use \Illuminate\Database\Eloquent\HasBuilder;
protected $table = 'comments';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use Illuminate\Database\Eloquent\Model;
class User extends Model
{
/**
* @use \Illuminate\Database\Eloquent\HasBuilder<\App\Models\Builders\UserBuilder<$this>>
* @use \Illuminate\Database\Eloquent\HasBuilder<\App\Models\Builders\UserBuilder>
*/
use \Illuminate\Database\Eloquent\HasBuilder;
protected static string $builder = FooBuilder::class;
Expand Down

0 comments on commit be68e13

Please sign in to comment.