Hi Wilbur, nice point. I'm using phpStan to check my code and the trait fires an error in following line: $model->{$model->getKeyName()} = (string) Str::uuid();
Error: Cannot cast Ramsey\Uuid\UuidInterface to string
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Wilbur, nice point. I'm using phpStan to check my code and the trait fires an error in following line:
$model->{$model->getKeyName()} = (string) Str::uuid();
Error:
Cannot cast Ramsey\Uuid\UuidInterface to string