Repository navigation
Commit 736e0cc
Check the variadic Type arguments of the native TypeCombinator entry points
union(), doUnion(), intersect() and doIntersect() parsed their variadic
arguments as any values and handed them straight to the implementation,
which crashed on a scalar (TypeCombinator::doUnion('x')) and failed
later with an unrelated Error on a non-Type object. The twins' `Type
...$types` parameter rejects both with a TypeError naming the argument;
the glue now raises the same TypeError before calling the
implementation.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Fdg8n3eEi4ZoXa4dA2k4A1 parent ca33650 commit 736e0cc
2 files changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3985 | 3985 | | |
3986 | 3986 | | |
3987 | 3987 | | |
| 3988 | + | |
| 3989 | + | |
| 3990 | + | |
| 3991 | + | |
| 3992 | + | |
| 3993 | + | |
| 3994 | + | |
| 3995 | + | |
| 3996 | + | |
| 3997 | + | |
| 3998 | + | |
| 3999 | + | |
| 4000 | + | |
| 4001 | + | |
| 4002 | + | |
3988 | 4003 | | |
3989 | 4004 | | |
3990 | 4005 | | |
| |||
4029 | 4044 | | |
4030 | 4045 | | |
4031 | 4046 | | |
| 4047 | + | |
4032 | 4048 | | |
4033 | 4049 | | |
4034 | 4050 | | |
| |||
4037 | 4053 | | |
4038 | 4054 | | |
4039 | 4055 | | |
| 4056 | + | |
4040 | 4057 | | |
4041 | 4058 | | |
4042 | 4059 | | |
| |||
4052 | 4069 | | |
4053 | 4070 | | |
4054 | 4071 | | |
| 4072 | + | |
4055 | 4073 | | |
4056 | 4074 | | |
4057 | 4075 | | |
| |||
4060 | 4078 | | |
4061 | 4079 | | |
4062 | 4080 | | |
| 4081 | + | |
4063 | 4082 | | |
4064 | 4083 | | |
4065 | 4084 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8371 | 8371 | | |
8372 | 8372 | | |
8373 | 8373 | | |
| 8374 | + | |
| 8375 | + | |
| 8376 | + | |
| 8377 | + | |
| 8378 | + | |
| 8379 | + | |
| 8380 | + | |
8374 | 8381 | | |
8375 | 8382 | | |
8376 | 8383 | | |
| |||
0 commit comments