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

ClassMethodReturnHasZeroArrayCountException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 18
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 16 1
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 ClassMethodReturnHasZeroArrayCountException extends IncorrectlyImplementedTypeError
14
{
15 1
    public function __construct(
16
        string $class,
17
        string $method,
18
        string $labelOfReturnType = 'property',
19
        int $code = 0,
20
        Throwable $previous = null
21
    ) {
22 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

22
        parent::/** @scrutinizer ignore-call */ __construct(
Loading history...
23 1
            sprintf(
24 1
                '%s::%s() must return at least one %s',
25 1
                $class,
26 1
                $method,
27 1
                $labelOfReturnType
28
            ),
29 1
            $code,
30 1
            $previous
31
        );
32 1
    }
33
}
34