Skip to content

Commit cec8e3a

Browse files
chore(deps-dev): bump szepeviktor/phpstan-wordpress from 2.0.2 to 2.0.3 (#1239)
* chore(deps-dev): bump szepeviktor/phpstan-wordpress from 2.0.2 to 2.0.3 Bumps [szepeviktor/phpstan-wordpress](https://github.com/szepeviktor/phpstan-wordpress) from 2.0.2 to 2.0.3. - [Release notes](https://github.com/szepeviktor/phpstan-wordpress/releases) - [Commits](szepeviktor/phpstan-wordpress@v2.0.2...v2.0.3) --- updated-dependencies: - dependency-name: szepeviktor/phpstan-wordpress dependency-version: 2.0.3 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore: update baseline * chore: update baseline --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Hardeep Asrani <hardeepasrani@gmail.com>
1 parent 03eeef7 commit cec8e3a

4 files changed

Lines changed: 33 additions & 41 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"format": "phpcbf --standard=phpcs.xml --report-summary --report-source",
3535
"lint": "phpcs --standard=phpcs.xml",
3636
"phpstan": "phpstan",
37-
"phpstan:generate:baseline": "phpstan --generate-baseline"
37+
"phpstan:generate:baseline": "phpstan --generate-baseline --memory-limit=2G"
3838
},
3939
"minimum-stability": "dev",
4040
"prefer-stable": true,

composer.lock

Lines changed: 19 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan-baseline.neon

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ parameters:
77
path: classes/Visualizer/Gutenberg/Block.php
88

99
-
10-
message: '#^Call to function is_wp_error\(\) with string will always evaluate to false\.$#'
10+
message: '#^Call to function is_wp_error\(\) with non\-empty\-string will always evaluate to false\.$#'
1111
identifier: function.impossibleType
1212
count: 1
1313
path: classes/Visualizer/Gutenberg/Block.php
@@ -36,12 +36,6 @@ parameters:
3636
count: 1
3737
path: classes/Visualizer/Gutenberg/Block.php
3838

39-
-
40-
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$#'
41-
identifier: missingType.generics
42-
count: 1
43-
path: classes/Visualizer/Gutenberg/Block.php
44-
4539
-
4640
message: '#^Method Visualizer_Gutenberg_Block\:\:enqueue_gutenberg_scripts\(\) has no return type specified\.$#'
4741
identifier: missingType.return
@@ -204,6 +198,12 @@ parameters:
204198
count: 1
205199
path: classes/Visualizer/Gutenberg/Block.php
206200

201+
-
202+
message: '#^Unable to resolve the template type TUrl in call to function wp_http_validate_url$#'
203+
identifier: argument.templateType
204+
count: 1
205+
path: classes/Visualizer/Gutenberg/Block.php
206+
207207
-
208208
message: '#^Constant VISUALIZER_PRO_VERSION not found\.$#'
209209
identifier: constant.notFound
@@ -1386,6 +1386,12 @@ parameters:
13861386
count: 1
13871387
path: classes/Visualizer/Module/Chart.php
13881388

1389+
-
1390+
message: '#^Unable to resolve the template type TUrl in call to function wp_http_validate_url$#'
1391+
identifier: argument.templateType
1392+
count: 1
1393+
path: classes/Visualizer/Module/Chart.php
1394+
13891395
-
13901396
message: '#^Undefined variable\: \$atts$#'
13911397
identifier: variable.undefined
@@ -1512,12 +1518,6 @@ parameters:
15121518
count: 1
15131519
path: classes/Visualizer/Module/Frontend.php
15141520

1515-
-
1516-
message: '#^Method Visualizer_Module_Frontend\:\:perform_action\(\) has parameter \$params with generic class WP_REST_Request but does not specify its types\: T$#'
1517-
identifier: missingType.generics
1518-
count: 1
1519-
path: classes/Visualizer/Module/Frontend.php
1520-
15211521
-
15221522
message: '#^Method Visualizer_Module_Frontend\:\:printFooterScripts\(\) has no return type specified\.$#'
15231523
identifier: missingType.return
@@ -2034,12 +2034,6 @@ parameters:
20342034
count: 1
20352035
path: classes/Visualizer/Module/Wizard.php
20362036

2037-
-
2038-
message: '#^Path in include_once\(\) "\./wp\-admin/includes/plugin\-install\.php" is not a file or it does not exist\.$#'
2039-
identifier: includeOnce.fileNotFound
2040-
count: 1
2041-
path: classes/Visualizer/Module/Wizard.php
2042-
20432037
-
20442038
message: '#^Property Visualizer_Module_Wizard\:\:\$wizard_data has no type specified\.$#'
20452039
identifier: missingType.property

phpstan.neon

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ parameters:
1010
- %currentWorkingDirectory%/vendor/neitanod/forceutf8
1111
- %currentWorkingDirectory%/vendor/openspout/openspout
1212
- %currentWorkingDirectory%/vendor/codeinwp/themeisle-sdk
13-
ignoreErrors:
14-
-
15-
identifiers:
16-
- requireOnce.fileNotFound
1713
includes:
1814
- %currentWorkingDirectory%/vendor/szepeviktor/phpstan-wordpress/extension.neon
1915
- %currentWorkingDirectory%/phpstan-baseline.neon

0 commit comments

Comments
 (0)