Issues (37)

src/Exceptions/BadCredentialsException.php (1 issue)

Labels
Severity
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
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