Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"format": "phpcbf --standard=phpcs.xml --report-summary --report-source",
"lint": "phpcs --standard=phpcs.xml",
"phpstan": "phpstan",
"phpstan:generate:baseline": "phpstan --generate-baseline"
"phpstan:generate:baseline": "phpstan --generate-baseline --memory-limit=2G"
},
"minimum-stability": "dev",
"prefer-stable": true,
Expand Down
36 changes: 19 additions & 17 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 13 additions & 19 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ parameters:
path: classes/Visualizer/Gutenberg/Block.php

-
message: '#^Call to function is_wp_error\(\) with string will always evaluate to false\.$#'
message: '#^Call to function is_wp_error\(\) with non\-empty\-string will always evaluate to false\.$#'
identifier: function.impossibleType
count: 1
path: classes/Visualizer/Gutenberg/Block.php
Expand Down Expand Up @@ -36,12 +36,6 @@ parameters:
count: 1
path: classes/Visualizer/Gutenberg/Block.php

-
message: '#^Method Visualizer_Gutenberg_Block\:\:add_rest_query_vars\(\) has parameter \$request with generic class WP_REST_Request but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: classes/Visualizer/Gutenberg/Block.php

-
message: '#^Method Visualizer_Gutenberg_Block\:\:enqueue_gutenberg_scripts\(\) has no return type specified\.$#'
identifier: missingType.return
Expand Down Expand Up @@ -204,6 +198,12 @@ parameters:
count: 1
path: classes/Visualizer/Gutenberg/Block.php

-
message: '#^Unable to resolve the template type TUrl in call to function wp_http_validate_url$#'
identifier: argument.templateType
count: 1
path: classes/Visualizer/Gutenberg/Block.php

-
message: '#^Constant VISUALIZER_PRO_VERSION not found\.$#'
identifier: constant.notFound
Expand Down Expand Up @@ -1386,6 +1386,12 @@ parameters:
count: 1
path: classes/Visualizer/Module/Chart.php

-
message: '#^Unable to resolve the template type TUrl in call to function wp_http_validate_url$#'
identifier: argument.templateType
count: 1
path: classes/Visualizer/Module/Chart.php

-
message: '#^Undefined variable\: \$atts$#'
identifier: variable.undefined
Expand Down Expand Up @@ -1512,12 +1518,6 @@ parameters:
count: 1
path: classes/Visualizer/Module/Frontend.php

-
message: '#^Method Visualizer_Module_Frontend\:\:perform_action\(\) has parameter \$params with generic class WP_REST_Request but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: classes/Visualizer/Module/Frontend.php

-
message: '#^Method Visualizer_Module_Frontend\:\:printFooterScripts\(\) has no return type specified\.$#'
identifier: missingType.return
Expand Down Expand Up @@ -2034,12 +2034,6 @@ parameters:
count: 1
path: classes/Visualizer/Module/Wizard.php

-
message: '#^Path in include_once\(\) "\./wp\-admin/includes/plugin\-install\.php" is not a file or it does not exist\.$#'
identifier: includeOnce.fileNotFound
count: 1
path: classes/Visualizer/Module/Wizard.php

-
message: '#^Property Visualizer_Module_Wizard\:\:\$wizard_data has no type specified\.$#'
identifier: missingType.property
Expand Down
4 changes: 0 additions & 4 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ parameters:
- %currentWorkingDirectory%/vendor/neitanod/forceutf8
- %currentWorkingDirectory%/vendor/openspout/openspout
- %currentWorkingDirectory%/vendor/codeinwp/themeisle-sdk
ignoreErrors:
-
identifiers:
- requireOnce.fileNotFound
includes:
- %currentWorkingDirectory%/vendor/szepeviktor/phpstan-wordpress/extension.neon
- %currentWorkingDirectory%/phpstan-baseline.neon
Loading