Skip to content

Commit

Permalink
Fixed type in intersection()
Browse files Browse the repository at this point in the history
  • Loading branch information
vudaltsov committed Feb 25, 2024
1 parent b9af741 commit cf1b136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public static function intersection(Type ...$types): Type
0 => self::never,
1 => $types[array_key_first($types)],
/** @phpstan-ignore argument.type */
default => new UnionType(array_values($types)),
default => new IntersectionType(array_values($types)),
};
}

Expand Down

0 comments on commit cf1b136

Please sign in to comment.