--level used: maxPR #499 allows only (!) integer type for model IDs.
But we are using UUID for some models IDs and static analysis failing.
I propose to rollback the PR.
/**
* @property string $user
*/
class User extends Model
{
/...
}
function foo(string $foo): void
{
echo $foo;
}
foo($user->id);
So you'd like to have int|string?
Hi,
This is fixed in the current master. You can specify a type for your id property in the annotation, and that will be used.
/**
* @property string $id
*/
class User extends Model
{
}
@canvural cool, thanks!
Most helpful comment
Hi,
This is fixed in the current master. You can specify a type for your
idproperty in the annotation, and that will be used.