Skip to content

Commit cefd4f1

Browse files
committed
PHPStan fixes
1 parent 00eed65 commit cefd4f1

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

phpstan.neon.dist

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,3 @@ parameters:
88
scanFiles:
99
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
1010
treatPhpDocTypesAsCertain: false
11-
ignoreErrors:
12-
- identifier: missingType.parameter
13-
- identifier: missingType.return

src/Server_Command.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ class Server_Command extends WP_CLI_Command {
7070
*
7171
* @when before_wp_load
7272
*
73-
* @param array $args Positional arguments passed through to the PHP binary.
74-
* @param array $assoc_args Associative arguments passed to the command.
73+
* @param array<string> $args Positional arguments passed through to the PHP binary.
74+
* @param array{host: string, port: string, docroot?: string, config?: string} $assoc_args Associative arguments passed to the command.
75+
* @return void
7576
*/
7677
public function __invoke( $args, $assoc_args ) {
7778
$defaults = array(

0 commit comments

Comments
 (0)