Commit e85f2c5
committed
fix: guard against missing
Attributes configured with `frontend_input` instead of `input` (e.g.
the `rrp` and `colour` samples) have no `input` key in their config
array. PHP 8 raises "Undefined array key" at the bare array access on
line 142. Replace with `$attributeConfig['input'] ?? ''` so the swatch
check degrades gracefully for those attributes.input key in Attributes::extractSwatchType1 parent 8027841 commit e85f2c5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
0 commit comments