@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\Permission; |
| 4 | 4 | |
| 5 | -use Illuminate\Support\Collection; |
|
| 6 | -use Spatie\Permission\Contracts\Role; |
|
| 5 | +use Illuminate\Contracts\Auth\Access\Authorizable; |
|
| 7 | 6 | use Illuminate\Contracts\Auth\Access\Gate; |
| 8 | 7 | use Illuminate\Contracts\Cache\Repository; |
| 8 | +use Illuminate\Support\Collection; |
|
| 9 | 9 | use Spatie\Permission\Contracts\Permission; |
| 10 | -use Illuminate\Contracts\Auth\Access\Authorizable; |
|
| 10 | +use Spatie\Permission\Contracts\Role; |
|
| 11 | 11 | use Spatie\Permission\Exceptions\PermissionDoesNotExist; |
| 12 | 12 | |
| 13 | 13 | class PermissionRegistrar |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | * |
| 213 | 213 | * @param null|string|int|\Spatie\Permission\Contracts\Permission $permission |
| 214 | 214 | * |
| 215 | - * @return array |
|
| 215 | + * @return string[] |
|
| 216 | 216 | */ |
| 217 | 217 | protected function getCacheTags($permission = null) |
| 218 | 218 | { |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | * |
| 244 | 244 | * @param string|int|\Spatie\Permission\Contracts\Permission $permission |
| 245 | 245 | * |
| 246 | - * @return mixed |
|
| 246 | + * @return string |
|
| 247 | 247 | */ |
| 248 | 248 | protected function getPermissionCacheString($permission) |
| 249 | 249 | { |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | /** |
| 316 | 316 | * Determine if the model has the given permission. |
| 317 | 317 | * |
| 318 | - * @param string|int|\Spatie\Permission\Contracts\Permission $permission |
|
| 318 | + * @param Permission $permission |
|
| 319 | 319 | * |
| 320 | 320 | * @return bool |
| 321 | 321 | */ |