`__return_null()` in `add_filter()` causes error
Closed this issue · 2 comments
IanDelMar commented
__return_null()
in add_filter()
causes a Filter callback return statement is missing.
error. See #220. Is this intended?
Note, there is no error with the lowest supported version of PHPStan.
szepeviktor commented
I see this
phpstan-wordpress/src/HookCallbackRule.php
Lines 211 to 231 in 74b9e2f
johnbillion commented
It's not intended, no.