Skip to content

Static analysis #6

@szepeviktor

Description

@szepeviktor

Hello @miya0001 !

Try running @phpstan on your nice code.

composer require --dev phpstan/phpstan-shim szepeviktor/phpstan-wordpress

phpstan.neon.dist

includes:
    - phar://phpstan.phar/conf/bleedingEdge.neon
    - vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
    level: max
    paths:
        - %currentWorkingDirectory%/src/
    ignoreErrors:
        # Uses func_get_args()
        - '#^Function add_query_arg invoked with [123] parameters?, 0 required\.$#'
        # __get()
        - '#^Access to an undefined property WP_CLI\\Formatter::\$format\.$#'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions