Issues (66)

src/RequestRefreshTokenEvent.php (1 issue)

1
<?php
2
3
/**
4
 * @author      Alex Bilbie <[email protected]>
5
 * @copyright   Copyright (c) Alex Bilbie
6
 * @license     http://mit-license.org/
7
 *
8
 * @link        https://github.com/thephpleague/oauth2-server
9
 */
10
11
declare(strict_types=1);
12
13
namespace League\OAuth2\Server;
14
15
use League\OAuth2\Server\Entities\RefreshTokenEntityInterface;
16
use Psr\Http\Message\ServerRequestInterface;
17
use SensitiveParameter;
0 ignored issues
show
The type SensitiveParameter was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
18
19
class RequestRefreshTokenEvent extends RequestEvent
20
{
21 14
    public function __construct(
22
        string $name,
23
        ServerRequestInterface $request,
24
        #[SensitiveParameter]
25
        private RefreshTokenEntityInterface $refreshToken
26
    ) {
27 14
        parent::__construct($name, $request);
28
    }
29
30
    /**
31
     * @codeCoverageIgnore
32
     */
33
    public function getRefreshToken(): RefreshTokenEntityInterface
34
    {
35
        return $this->refreshToken;
36
    }
37
}
38