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.

InvalidArgumentException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 4
1
<?php
2
3
namespace Cmp\Cache\Exceptions;
4
5
use Exception;
6
7
/**
8
 * Class CacheException
9
 *
10
 * @package Cmp\Cache\Exceptions
11
 */
12
class InvalidArgumentException extends CacheException
13
{
14
    const CODE = 1003;
15
16
    /**
17
     * CacheException constructor.
18
     *
19
     * @param string         $argument
20
     * @param string         $expected
21
     * @param string         $value
22
     * @param Exception|null $previous
23
     */
24
    public function __construct($argument, $expected, $value, Exception $previous = null)
25
    {
26
        parent::__construct(
27
            "The given argument $argument is invalid. The expected was $expected, got ".gettype($value), 
28
            $previous
29
        );
30
    }
31
}
32