Skip to content

Commit 5cd8d7a

Browse files
committed
Fixing PHPStan issues
1 parent 716179a commit 5cd8d7a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Controller/GraphQL/LoginController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function login(string $userName, string $password, Request $request): boo
8181

8282
// Fire the login event manually
8383
$event = new InteractiveLoginEvent($request, $token);
84-
$this->eventDispatcher->dispatch('security.interactive_login', $event);
84+
$this->eventDispatcher->dispatch($event, 'security.interactive_login');
8585

8686
return true;
8787
}

phpstan.neon

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
parameters:
22
ignoreErrors:
33
- "#Call to an undefined method Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\NodeDefinition::children\\(\\)#"
4+
# Error triggered by a bad PHPDoc in Symfony
5+
- '#Parameter \#4 $roles of class Symfony\\Component\\Security\\Core\\Authentication\\Token\\UsernamePasswordToken constructor expects array<string>, array<string|Symfony\\Component\\Security\\Core\\Role\\Role> given.#'
6+
- '#Method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) invoked with 2 parameters, 1 required.#'
47
#includes:
58
# - vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon

0 commit comments

Comments
 (0)