BadCredentialsException::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
cc 2
nc 1
nop 3
1
<?php
2
3
namespace Axsor\PhpIPAM\Exceptions;
4
5
use Throwable;
6
7
class BadCredentialsException extends \Exception
8
{
9
    public function __construct($message = '', $code = 0, Throwable $previous = null)
10
    {
11
        parent::construct($message ?: 'Can not connect to PhpIPAM', $code, $previous);
0 ignored issues
show
Bug introduced by
The method construct() does not exist on Exception. Did you maybe mean __construct()? ( Ignorable by Annotation )

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

11
        parent::/** @scrutinizer ignore-call */ 
12
                construct($message ?: 'Can not connect to PhpIPAM', $code, $previous);

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
12
    }
13
}
14