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.
Completed
Push — master ( ce1e69...5665d5 )
by SignpostMarv
04:49
created

__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 7
nc 1
nop 4
dl 0
loc 14
ccs 8
cts 8
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
* Base daft objects.
4
*
5
* @author SignpostMarv
6
*/
7
declare(strict_types=1);
8
9
namespace SignpostMarv\DaftObject;
10
11
use Throwable;
12
13
class ClassMethodReturnIsNotArrayOfStringsException extends IncorrectlyImplementedTypeError
14
{
15 1
    public function __construct(
16
        string $class,
17
        string $method,
18
        int $code = 0,
19
        Throwable $previous = null
20
    ) {
21 1
        parent::__construct(
0 ignored issues
show
Bug introduced by
The method __construct() does not exist on SignpostMarv\DaftObject\...tlyImplementedTypeError. It seems like you code against a sub-type of SignpostMarv\DaftObject\...tlyImplementedTypeError such as SignpostMarv\DaftObject\...ImplementClassException or SignpostMarv\DaftObject\...ZeroArrayCountException or SignpostMarv\DaftObject\...tlyImplementedTypeError or SignpostMarv\DaftObject\...ArrayOfStringsException. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

21
        parent::/** @scrutinizer ignore-call */ __construct(
Loading history...
22 1
            sprintf(
23 1
                '%s::%s() does not return string[]',
24 1
                $class,
25 1
                $method
26
            ),
27 1
            $code,
28 1
            $previous
29
        );
30 1
    }
31
}
32