-
Notifications
You must be signed in to change notification settings - Fork 145
Benefit from static analysis #622
Copy link
Copy link
Closed
Labels
InfrastructureIssues for the overall performance plugin infrastructureIssues for the overall performance plugin infrastructure[Plugin] Performance LabIssue relates to work in the Performance Lab Plugin onlyIssue relates to work in the Performance Lab Plugin only[Type] BugAn existing feature is brokenAn existing feature is broken
Milestone
Metadata
Metadata
Assignees
Labels
InfrastructureIssues for the overall performance plugin infrastructureIssues for the overall performance plugin infrastructure[Plugin] Performance LabIssue relates to work in the Performance Lab Plugin onlyIssue relates to work in the Performance Lab Plugin only[Type] BugAn existing feature is brokenAn existing feature is broken
Type
Fields
Give feedbackNo fields configured for issues without a type.
Bug Description
There are errors in the code.
e.g.
webp_uploads_update_image_onchange: Callback expects 5 parameters, $accepted_args is set to 7.Steps to reproduce
composer require --dev szepeviktor/phpstan-wordpressvendor/bin/phpstan analyse -c vendor/szepeviktor/phpstan-wordpress/extension.neon admin/ modules/ server-timing/ *.php --level=0then raise level by onePlease consider using PHPStan.
Thank you!