It seems like $connectionArray['connectionId'] ?? null can also be of type null; however, parameter $connectionId of SquareetLabs\LaravelOpen...nnection::__construct() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
24
return new Connection(/** @scrutinizer ignore-type */ $connectionArray['connectionId'] ?? null,
It seems like $connectionArray['createdAt'] ?? null can also be of type null; however, parameter $createdAt of SquareetLabs\LaravelOpen...nnection::__construct() does only seem to accept integer, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $connectionArray['role'] ?? null can also be of type null; however, parameter $role of SquareetLabs\LaravelOpen...nnection::__construct() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $connectionArray['token'] ?? null can also be of type null; however, parameter $token of SquareetLabs\LaravelOpen...nnection::__construct() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $connectionArray['location'] ?? null can also be of type null; however, parameter $location of SquareetLabs\LaravelOpen...nnection::__construct() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $connectionArray['platform'] ?? null can also be of type null; however, parameter $platform of SquareetLabs\LaravelOpen...nnection::__construct() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $connectionArray['serverData'] ?? null can also be of type null; however, parameter $serverData of SquareetLabs\LaravelOpen...nnection::__construct() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
It seems like $connectionArray['clientData'] ?? null can also be of type null; however, parameter $clientData of SquareetLabs\LaravelOpen...nnection::__construct() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.