Closed benjaminprojas closed 2 years ago
Hello @benjaminprojas! Yes, these problems may occur. made by WooCommerce
What is your proposal?
This can be fixed by declaring $object
as "optional" by setting its default value to an empty array. See #18.
Here is the solution. In this commit
https://github.com/woocommerce/woocommerce/pull/34396
Hold on tight! WC 7.1.0 will be released soon 🎉
Oh boy 🤦🏻 I feel bad for anyone using that public method and updates without understanding the consequences!
Will look for this fix then once WC 7.1.0 is out 😄
I'm seeing these errors when running PHPStan with WooCommerce Stubs: