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

fix(team): Add nullable team_id

Open Androlax2 opened this issue 1 year ago • 0 comments

Added null to helpers getPermissionsTeamId and setPermissionsTeamId and in the PermissionRegistrar.

This is to fix a PHPStan problem :

Parameter #1 $id of function setPermissionsTeamId expects Illuminate\Database\Eloquent\Model|int|string, null given.

But when you put '', my tests are failing because it expects a null as per the doc.

Androlax2 avatar Feb 08 '24 17:02 Androlax2