Issues (16)

src/Exceptions/AbstractNetgsmException.php (1 issue)

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