Skip to content

Commit bad3244

Browse files
committed
Fix some code quality issues.
1 parent 70cf0b6 commit bad3244

File tree

7 files changed

+5
-2377
lines changed

7 files changed

+5
-2377
lines changed

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@
2323
"bamarni/composer-bin-plugin": "^1.4",
2424
"php-coveralls/php-coveralls": "^2.4",
2525
"phpmd/phpmd": "^2.9",
26+
"phpstan/phpstan": "^1.11",
2627
"pronamic/pronamic-cli": "^1.1",
2728
"pronamic/wp-coding-standards": "^2.2",
2829
"roots/wordpress": "^6.0",
30+
"szepeviktor/phpstan-wordpress": "^1.3",
31+
"vimeo/psalm": "^5.25",
2932
"yoast/phpunit-polyfills": "^1.0"
3033
},
3134
"scripts": {

phpstan.neon.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
includes:
2-
- vendor-bin/phpstan/vendor/szepeviktor/phpstan-wordpress/extension.neon
2+
- vendor/szepeviktor/phpstan-wordpress/extension.neon
33
parameters:
44
customRulesetUsed: false
55
level: max

src/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function json() {
108108
\esc_html( (string) \strlen( $body ) ),
109109
\esc_html( \json_last_error_msg() )
110110
),
111-
\esc_html( $json_error )
111+
(int) $json_error
112112
);
113113
}
114114

vendor-bin/phpstan/composer.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

vendor-bin/phpstan/composer.lock

Lines changed: 0 additions & 264 deletions
This file was deleted.

vendor-bin/psalm/composer.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)