GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 217541...83405a )
by Louis-Marie
02:28
created

AuthentifierResponse::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LM\AuthAbstractor\Implementation;
6
7
use Psr\Http\Message\ResponseInterface;
8
use LM\AuthAbstractor\Model\IAuthenticationProcess;
9
use LM\AuthAbstractor\Model\IAuthentifierResponse;
10
11
/**
12
 * This class is only used to store the value returned when the kernel finished
13
 * processing the HTTP request.
14
 */
15
class AuthentifierResponse implements IAuthentifierResponse
16
{
17
    /** @var AuthenticationProcess */
0 ignored issues
show
Bug introduced by
The type LM\AuthAbstractor\Implem...n\AuthenticationProcess 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
    private $process;
19
20
    /** @var ResponseInterface|null */
21
    private $response;
22
23
    /**
24
     * @param IAuthenticationProcess $process The authentication process.
25
     * @param null|ResponseInterface $response The HTTP response, if any.
26
     */
27
    public function __construct(
28
        IAuthenticationProcess $process,
29
        ?ResponseInterface $response
30
    ) {
31
        $this->process = $process;
0 ignored issues
show
Documentation Bug introduced by
It seems like $process of type LM\AuthAbstractor\Model\IAuthenticationProcess is incompatible with the declared type LM\AuthAbstractor\Implem...n\AuthenticationProcess of property $process.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
32
        $this->response = $response;
33
    }
34
35
    public function getAuthenticationProcess(): IAuthenticationProcess
36
    {
37
        return $this->process;
38
    }
39
40
    public function getHttpResponse(): ?ResponseInterface
41
    {
42
        return $this->response;
43
    }
44
}
45