AbstractNetgsmException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 3
1
<?php
2
3
namespace TarfinLabs\Netgsm\Exceptions;
4
5
use Exception;
6
use Throwable;
7
8
abstract class AbstractNetgsmException extends Exception
9
{
10
    public function __construct($message = '', $code = 0, Throwable $previous = null)
11
    {
12
        parent::__construct(trans($message), $code, $previous);
0 ignored issues
show
Bug introduced by
trans($message) of type Illuminate\Translation\Translator is incompatible with the type string expected by parameter $message of Exception::__construct(). ( Ignorable by Annotation )

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

12
        parent::__construct(/** @scrutinizer ignore-type */ trans($message), $code, $previous);
Loading history...
13
    }
14
}
15