Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing v3 issues #16

Open
szepeviktor opened this issue Jun 10, 2021 · 1 comment
Open

Fixing v3 issues #16

szepeviktor opened this issue Jun 10, 2021 · 1 comment

Comments

@szepeviktor
Copy link
Contributor

szepeviktor commented Jun 10, 2021

Please consider running static analysis.
You will benefit from it. It will find bugs.

phpstan.neon.dist

includes:
    - vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
    level: 5
    inferPrivatePropertyTypeFromConstructor: true
    scanFiles:
        - vendor/php-stubs/acf-pro-stubs/acf-pro-stubs.php
    paths:
        - oowp.php
        - src/
    ignoreErrors:
        # Uses func_get_args()
        - '#^Function apply_filters(_ref_array)? invoked with [34567] parameters, 2 required\.$#'
@szepeviktor
Copy link
Contributor Author

Maybe composer require --dev scribu/lib-posts-to-posts:dev-master scribu/scb-framework:dev-master
and

    scanDirectories:
        - vendor/scribu/lib-posts-to-posts/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant