1 | <?php |
||
12 | class PermissionRegistrar |
||
13 | { |
||
14 | /** @var \Illuminate\Contracts\Auth\Access\Gate */ |
||
15 | protected $gate; |
||
16 | |||
17 | /** @var \Illuminate\Contracts\Cache\Repository */ |
||
18 | protected $cache; |
||
19 | |||
20 | /** @var string */ |
||
21 | protected $cacheKey = 'spatie.permission.cache'; |
||
22 | |||
23 | /** @var string */ |
||
24 | protected $permissionClass; |
||
25 | |||
26 | /** @var string */ |
||
27 | protected $roleClass; |
||
28 | |||
29 | public function __construct(Gate $gate, Repository $cache) |
||
36 | |||
37 | public function registerPermissions(): bool |
||
50 | |||
51 | public function forgetCachedPermissions() |
||
55 | |||
56 | public function getPermissions(): Collection |
||
64 | |||
65 | public function getPermissionClass() |
||
69 | |||
70 | public function getRoleClass() |
||
74 | } |
||
75 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.