$type of type string is incompatible with the type integer expected by parameter $type of SP\Core\Exceptions\SPException::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
46
parent::__construct(__u('No tiene permisos para realizar esta operación'), /** @scrutinizer ignore-type */ $type, __u('Consulte con el administrador'), $code, $previous);