Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix remaining reported issues
  • Loading branch information
swissspidy committed Feb 2, 2026
commit 56aa0ed6fe1b5ff29e12f82e2453987fdc1acf24
2 changes: 0 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,5 @@ parameters:
ignoreErrors:
# Needs fixing in WP-CLI.
- message: '#Parameter \#1 \$cmd of function WP_CLI\\Utils\\esc_cmd expects array<string>#'
- message: '#Dynamic call to static method#'
path: 'tests/tests'
strictRules:
strictCalls: true
3 changes: 0 additions & 3 deletions src/PHPStan/WPCliRuncommandDynamicReturnTypeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,8 @@
): Type {
$args = $methodCall->getArgs();

/** @var ConstantBooleanType|ConstantStringType $returnOption */
$returnOption = new ConstantBooleanType( true );

Check warning on line 42 in src/PHPStan/WPCliRuncommandDynamicReturnTypeExtension.php

View workflow job for this annotation

GitHub Actions / code-quality / PHPCS

Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
/** @var ConstantBooleanType|ConstantStringType $parseOption */
$parseOption = new ConstantBooleanType( false );

Check warning on line 43 in src/PHPStan/WPCliRuncommandDynamicReturnTypeExtension.php

View workflow job for this annotation

GitHub Actions / code-quality / PHPCS

Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
/** @var ConstantBooleanType $exitOnErrorOption */
$exitOnErrorOption = new ConstantBooleanType( true );

$optionsAreStaticallyKnown = true;
Expand Down
Loading