1 | <?php |
||
22 | class Server extends \OAuth2\Server |
||
23 | { |
||
24 | /** |
||
25 | * Server constructor. |
||
26 | * @param ResourceOwnerProviderInterface $resourceOwnerProvider |
||
27 | * @param null|StorageRepository $storageRepository |
||
28 | * @param null|ConfigurationRepository $configurationRepository |
||
29 | * @param null|ResponseTypeRepository $responseTypeRepository |
||
30 | * @param null|GrantTypeRepository $grantTypeRepository |
||
31 | * @param null|ClientAuthenticatorRepository $clientAuthenticatorRepository |
||
32 | * @param null|Guard $guard |
||
33 | * @param null|Manager $scopePolicyManager |
||
34 | * @throws \Exception |
||
35 | */ |
||
36 | public function __construct(ResourceOwnerProviderInterface $resourceOwnerProvider, |
||
50 | |||
51 | /** |
||
52 | * @return \OAuth2\OpenID\Endpoints\AuthorizationEndpoint |
||
53 | */ |
||
54 | public function getAuthorizationEndpoint(): \OAuth2\Endpoints\AuthorizationEndpoint |
||
58 | } |
It seems like you allow that null is being passed for a parameter, however the function which is called does not seem to accept null.
We recommend to add an additional type check (or disallow null for the parameter):