Commit d6d6596
committed
fix: declare $optionCollection property to silence PHP 8.2 dynamic-property deprecation
$optionCollection was used as a lazy-loaded per-attribute-id cache in
loadOptionCollection() but was never declared as a class property.
PHP 8.2 deprecated dynamic property creation; Magento's strict error
handler promotes that deprecation to an exception, causing exit code 1
in CI. Declare it as `private array $optionCollection = []`.1 parent e85f2c5 commit d6d6596
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
0 commit comments