Skip to content

Commit

Permalink
qa: ensure array_merge has at least one argument
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
  • Loading branch information
boesing committed Nov 15, 2021
1 parent 62b0a09 commit 6bf0265
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -55,6 +55,6 @@ public function resolve(string $class_name, string $constant_pattern): ?array
$matched_class_constant_types[] = $class_constant_storage->type->getAtomicTypes();
}

return array_values(array_merge(...$matched_class_constant_types));
return array_values(array_merge([], ...$matched_class_constant_types));
}
}

0 comments on commit 6bf0265

Please sign in to comment.