php-casbin / laravel-authz

An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.
Apache License 2.0
272 stars 46 forks source link

Lauthz\Facades\Enforcer has no type hints #43

Closed lanrenbulan closed 3 weeks ago

lanrenbulan commented 2 years ago

Hi,

Lauthz\Facades\Enforcer has no type hints.

It is recommended to add @method static.

`namespace Lauthz\Facades;

use Illuminate\Support\Facades\Facade;

/**

hsluoyz commented 2 years ago

@leeqvip

lanrenbulan commented 2 years ago

I submitted a PR to fix this, please review.

hsluoyz commented 2 years ago

@leeqvip plz close this issue, as fixed by: https://github.com/php-casbin/laravel-authz/pull/45