mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 18:58:46 +02:00
Fixed static analysis issue
This commit is contained in:
parent
aab1dcf8e6
commit
07535c26a6
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class ValidPermissionValidator extends ConstraintValidator
|
||||||
//Determine the controller class (the part before the ::)
|
//Determine the controller class (the part before the ::)
|
||||||
$controller_class = explode('::', $request->attributes->get('_controller'))[0];
|
$controller_class = explode('::', $request->attributes->get('_controller'))[0];
|
||||||
|
|
||||||
if (in_array($controller_class, [UserController::class, GroupController::class])) {
|
if (in_array($controller_class, [UserController::class, GroupController::class], true)) {
|
||||||
/** @var Session $session */
|
/** @var Session $session */
|
||||||
$session = $this->requestStack->getSession();
|
$session = $this->requestStack->getSession();
|
||||||
$flashBag = $session->getFlashBag();
|
$flashBag = $session->getFlashBag();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue