Commit f32c76e
committed
Accept array type in Assurance attribute for ::class support
The type parameter now accepts string|array|null. Array form is a union
of its elements, enabling ::class references for IDE navigation:
#[Assurance(type: ['array', Countable::class])]
String form remains unchanged for primitive-only types:
#[Assurance(type: 'int|float|numeric-string')]1 parent 21e9936 commit f32c76e
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | | - | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
0 commit comments