Skip to content

Commit

Permalink
Update phpstan rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Tubach committed Jan 8, 2024
1 parent 9f30837 commit 9de5211
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ parameters:
- '/ no value type specified in iterable type Drupal\\file\\FileInterface/'
- '/^Access to an undefined property Drupal\\Core\\Field\\FieldItemListInterface::\$(value|entity|target_id).$/'
- '/::delete\(\) should be contravariant with parameter \$entities \(array\) of method Drupal\\Core\\Entity\\[^\s]+::delete\(\)$/'
- '/^Concat: Do not cast objects magically, please use `__toString` here, Drupal\\Core\\StringTranslation\\TranslatableMarkup and .+ found.$/'

- "/^Do not compare objects directly, Drupal\\\\Core\\\\StringTranslation\\\\TranslatableMarkup and '.+' found.$/"
- '/^Method Drupal\\civiremote_funding\\Element\\[^\s]+::getInfo\(\) return type has no value type specified in iterable type array.$/'
- '/^Method Drupal\\civiremote_funding\\Element\\[^\s]+::preRender[^\s]+\(\) has parameter \$element with no value type specified in iterable type array.$/'
- '/^Method Drupal\\civiremote_funding\\Element\\[^\s]+::preRender[^\s]+\(\) return type has no value type specified in iterable type array.$/'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ final class FormResponseHandlerActionTest extends TestCase {
private FormResponseHandlerAction $handler;

/**
* @var \Drupal\Core\Http\RequestStack&\PHPUnit\Framework\MockObject\MockObject
* @var \Symfony\Component\HttpFoundation\RequestStack&\PHPUnit\Framework\MockObject\MockObject
*/
private MockObject $requestStackMock;

Expand Down
2 changes: 1 addition & 1 deletion tools/phpstan/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"phpstan/phpstan-phpunit": "^1.1",
"phpstan/phpstan-strict-rules": "^1.2",
"thecodingmachine/phpstan-strict-rules": "^1.0",
"voku/phpstan-rules": "^1.6"
"voku/phpstan-rules": "^3.2"
},
"config": {
"allow-plugins": {
Expand Down

0 comments on commit 9de5211

Please sign in to comment.