mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Update PHPStan (#11976)
* Update PHPStan * Update inline ignores to `@phpstan-ignore` with error identifier
This commit is contained in:
parent
d4b071bd1e
commit
5bb30ca170
29 changed files with 84 additions and 85 deletions
|
@ -45,7 +45,7 @@ class ErrorHandlerTest extends TestCase
|
|||
}
|
||||
|
||||
$array = ['foo' => 'bar'];
|
||||
// @phpstan-ignore-next-line
|
||||
// @phpstan-ignore offsetAccess.notFound, expr.resultUnused
|
||||
$array['baz'];
|
||||
}
|
||||
|
||||
|
@ -62,7 +62,7 @@ class ErrorHandlerTest extends TestCase
|
|||
self::expectExceptionMessage('array_merge');
|
||||
}
|
||||
|
||||
// @phpstan-ignore-next-line
|
||||
// @phpstan-ignore function.resultUnused, argument.type
|
||||
array_merge([], 'string');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue