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.

Nullable   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A nullable() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Spatie\Typed\Types;
6
7
trait Nullable
8
{
9
    public function nullable(): NullType
10
    {
11
        return new NullType($this);
0 ignored issues
show
Bug introduced by
$this of type Spatie\Typed\Types\Nullable is incompatible with the type Spatie\Typed\Type expected by parameter $type of Spatie\Typed\Types\NullType::__construct(). ( Ignorable by Annotation )

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

11
        return new NullType(/** @scrutinizer ignore-type */ $this);
Loading history...
12
    }
13
}
14