Closed IanDelMar closed 2 months ago
__return_null() in add_filter() causes a Filter callback return statement is missing. error. See #220. Is this intended?
__return_null()
add_filter()
Filter callback return statement is missing.
Note, there is no error with the lowest supported version of PHPStan.
I see this
https://github.com/szepeviktor/phpstan-wordpress/blob/74b9e2f572b51cab33259b3c55a88050d3cbe28b/src/HookCallbackRule.php#L211-L231
It's not intended, no.
__return_null()
inadd_filter()
causes aFilter callback return statement is missing.
error. See #220. Is this intended?Note, there is no error with the lowest supported version of PHPStan.