Skip to content

Fix productVariants method to handle null values#120

Merged
duncanmcclean merged 1 commit intoduncanmcclean:1.xfrom
Oleafeon:1.x
Jan 23, 2026
Merged

Fix productVariants method to handle null values#120
duncanmcclean merged 1 commit intoduncanmcclean:1.xfrom
Oleafeon:1.x

Conversation

@Oleafeon
Copy link
Contributor

For some reason, I got "DuncanMcClean\Cargo\Products\Product::productVariants(): Return value must be of type array, null returned" with some products but not all. This way, all products are working.

@duncanmcclean duncanmcclean merged commit 31150d7 into duncanmcclean:1.x Jan 23, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants