Commit 24f5163
fix: guard against null return from DataType::export() (#68)
The DataType contract declares export() as ?array, but the Exporter
did not handle a null return — causing a PHP warning when iterating
over it. Skip null returns instead of attempting to foreach them.
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 2f3db9d commit 24f5163
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
0 commit comments