Skip to content

Commit

Permalink
Replace Array Union Operator + with array_merge (#1324)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Aug 7, 2023
2 parents 2351243 + 818cb89 commit d36f524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Mockery/Reflector.php
Expand Up @@ -259,7 +259,7 @@ static function (\ReflectionType $type) use ($declaringClass): string {

$intersect = array_intersect(self::TRAVERSABLE_ARRAY, $types);
if (self::TRAVERSABLE_ARRAY === $intersect) {
$types = self::ITERABLE + array_diff($types, self::TRAVERSABLE_ARRAY);
$types = array_merge(self::ITERABLE, array_diff($types, self::TRAVERSABLE_ARRAY));
}

return implode(
Expand Down

0 comments on commit d36f524

Please sign in to comment.