szepeviktor / phpstan-wordpress

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

Function apply_filters invoked with 3 parameters, 2 required #210

Closed szepeviktor closed 6 months ago

szepeviktor commented 6 months ago

Please help me solve this thingy!

        /**
         * @param bool $enabled
         * @param self $instance
         */
        apply_filters(
            Plugin::SLUG.'_enable_two_step_payment',
            TwoStep::enabled(),
            $this
        );
szepeviktor commented 6 months ago

Old stubs.

php-stubs/wordpress-stubs     v5.9.6

Duplicate of https://github.com/php-stubs/wordpress-stubs/issues/12