chore: fix coding standards

Signed-off-by: azjezz <azjezz@protonmail.com>
This commit is contained in:
azjezz 2022-02-27 21:05:43 +01:00
parent 19d14701e5
commit ce1bfb5f9a
No known key found for this signature in database
GPG Key ID: B00E0A46B3F1C157

View File

@ -71,8 +71,10 @@ final class FunctionReturnTypeProvider implements FunctionReturnTypeProviderInte
}
if (method_exists($array_argument_type->type_params[0], 'isEmpty')) {
if ($array_argument_type->type_params[0]->isEmpty() && $array_argument_type->type_params[1]->isEmpty()) {
return Type::getInt(false, 0);
if ($array_argument_type->type_params[0]->isEmpty()) {
if ($array_argument_type->type_params[1]->isEmpty()) {
return Type::getInt(false, 0);
}
}
}