diff options
author | Arnold Daniels <arnold@jasny.net> | 2016-12-28 23:40:34 +0100 |
---|---|---|
committer | Arnold Daniels <arnold@jasny.net> | 2016-12-28 23:40:34 +0100 |
commit | 6b28cc87b48fb3a8ee1a171f6d8b8919250434fe (patch) | |
tree | b8209b7c3dd90a1e148021e5e8d8213ba8b41c15 | |
parent | c4e4223c952f62765071edfe8548ed98c2656a0a (diff) | |
download | auth-6b28cc87b48fb3a8ee1a171f6d8b8919250434fe.zip auth-6b28cc87b48fb3a8ee1a171f6d8b8919250434fe.tar.gz auth-6b28cc87b48fb3a8ee1a171f6d8b8919250434fe.tar.bz2 |
Minor fixes (indicated by scrutinizer)
-rw-r--r-- | src/Auth.php | 1 | ||||
-rw-r--r-- | src/Auth/Middleware.php | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/Auth.php b/src/Auth.php index 25ea33f..69b0952 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -171,7 +171,6 @@ abstract class Auth /** * Create auth middleware interface for access control. * - * @param Authz $auth * @param callable $getRequiredRole * @return Middleware */ diff --git a/src/Auth/Middleware.php b/src/Auth/Middleware.php index 2e06789..3b65adc 100644 --- a/src/Auth/Middleware.php +++ b/src/Auth/Middleware.php @@ -13,7 +13,7 @@ use Psr\Http\Message\ResponseInterface; class Middleware { /** - * @var Auth|Authz + * @var Auth **/ protected $auth; @@ -43,7 +43,7 @@ class Middleware /** * Check if the current user has one of the roles * - * @param array|string|boolean $roles + * @param array|string|boolean $requiredRole * @return */ protected function hasRole($requiredRole) |