keesiemeijer / related-posts-by-taxonomy

A WordPress plugin that provides a widget and shortcode to display related posts by taxonomies as links, full posts, excerpts or post thumbnails.

Home Page:http://wordpress.org/plugins/related-posts-by-taxonomy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use PHPStan to improve related-posts-by-taxonomy

szepeviktor opened this issue · comments

Here is the config: phpstan.neon.dist

includes:
    - autoloader/szepeviktor/phpstan-wordpress/extension.neon
parameters:
    level: 5
    inferPrivatePropertyTypeFromConstructor: true
    paths:
        - includes/
    excludes_analyse:
        - includes/assets/
    ignoreErrors:
        # Uses func_get_args()
        - '#^Function apply_filters(_ref_array)? invoked with [34567] parameters, 2 required\.$#'