Closed crstauf closed 10 months ago
I think that's correct. The instance
method is returning an instance of CSSLLC_WooCommerce
and it's hooked into an action.
Ooooh. So I need to change to a callback that will initialize the instance, and not return it. Wow. 🤦♂️
Source file (WordPress mu-plugin): https://github.com/cssllc/mu-plugins/blob/add-phpcs-phpstan/src/cssllc-woocommerce.php
Error:
Initially reported here: https://github.com/phpstan/phpstan/discussions/9889