szepeviktor / phpstan-wordpress

WordPress extensions for PHPStan ⛏️
https://packagist.org/packages/szepeviktor/phpstan-wordpress
MIT License
267 stars 26 forks source link

Introduce a dynamic return type extension for functions with an `$echo` or `$display` parameter #94

Closed johnbillion closed 2 years ago

johnbillion commented 2 years ago

These functions are [nearly] the worst. I've seen their non-existent return values used several times.

This covers all procedural functions with an $echo or $display parameter (all of which have a default value of true). There are some others which support an $echo argument inside an $args array, this doesn't cover those.

szepeviktor commented 2 years ago

CI says green and I've taken a look at it.

szepeviktor commented 2 years ago

@johnbillion Have you seen that recently more and more people use this package?

johnbillion commented 2 years ago

No I haven't. Where are you looking at the stats?

szepeviktor commented 2 years ago

The 3rd badge has a link to Packagist's stats: https://packagist.org/packages/szepeviktor/phpstan-wordpress/stats