Skip to content

Commit 49cd6a5

Browse files
committed
chore: Update PHPStan
1 parent cfdaabd commit 49cd6a5

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@
2626
"wp-cli/db-command": "^2.0",
2727
"wp-cli/eval-command": "^2.2",
2828
"wp-cli/search-replace-command": "^2.1",
29-
"wp-cli/wp-cli-tests": "^4.2"
29+
"wp-cli/wp-cli-tests": "^4.3"
3030
},
31+
"minimum-stability": "dev",
32+
"prefer-stable": true,
3133
"autoload": {
3234
"psr-4": {
3335
"n5s\\WpCliMove\\": "src/"

phpstan.neon.dist

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
parameters:
22
level: 8
3+
editorUrl: 'vscode://file/%%file%%:%%line%%'
34
paths:
45
- src/
56
scanFiles:
67
- %rootDir%/../../php-stubs/wordpress-stubs/wordpress-stubs.php
78
scanDirectories:
89
- %rootDir%/../../wp-cli/wp-cli
910
ignoreErrors:
10-
- '#Function WP_CLI\\Utils\\esc_cmd invoked with [0-9]+ parameters, 1 required.#'
11+
-
12+
message: '#Parameter \#[0-9]+ \$cmd of function WP_CLI\\Utils\\esc_cmd expects array<string>, string given.#'
13+
identifier: argument.type
14+
-
15+
message: '#Parameter \#[0-9]+ \$assoc_args of function WP_CLI\\Utils\\assoc_args_to_str expects array<string, string>, array<string, string\|true> given.#'
16+
identifier: argument.type

src/Model/Alias.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ private function dispatch_command( string $command, string $type = self::COMMAND
379379
]
380380
);
381381

382+
// @phpstan-ignore assign.propertyReadOnly
382383
$result->command = $command;
383384
break;
384385
case self::COMMAND_TYPE_RAW:

0 commit comments

Comments
 (0)