laravel-clickup icon indicating copy to clipboard operation
laravel-clickup copied to clipboard

Laravel 11: incompatible $builder property

Open cedrictwillie opened this issue 11 months ago • 0 comments

Is this package compatible with Laravel 11? I'm receiving a fatal error for an incompatible $builder property defined in my User model.

PHP Fatal error:  Illuminate\Database\Eloquent\Model and Spinen\ClickUp\Concerns\HasClickUp define the same property ($builder) in the composition of App\Models\User. However, the definition differs and is considered incompatible.

The HasClickUp trait defines: protected ?Builder $builder = null;..

But the Eloquent Model defines: protected static string $builder = Builder::class;...

Any clarity on what to do here would be much appreciated.

cedrictwillie avatar Nov 18 '24 21:11 cedrictwillie