Skip to content

Commit

Permalink
Fix phpstan baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaidelich committed Jan 21, 2024
1 parent a9b2a4c commit ae20335
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,6 @@ public function updateAccountAction(Account $account, array $roleIdentifiers, ar
$this->redirect('index');
}
if ($user === $this->currentUser) {
$roles = [];
foreach ($roleIdentifiers as $roleIdentifier) {
$roles[$roleIdentifier] = $this->policyService->getRole($roleIdentifier);
}
Expand Down
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,6 @@ parameters:
count: 16
path: Neos.Neos/Classes/Controller/Module/Administration/UsersController.php

-
message: "#^Parameter \\#1 \\$roles of method Neos\\\\Flow\\\\Security\\\\Authorization\\\\PrivilegeManagerInterface\\:\\:isPrivilegeTargetGrantedForRoles\\(\\) expects array\\<Neos\\\\Flow\\\\Security\\\\Authorization\\\\Role\\>, array\\<int\\|string, Neos\\\\Flow\\\\Security\\\\Policy\\\\Role\\> given\\.$#"
count: 1
path: Neos.Neos/Classes/Controller/Module/Administration/UsersController.php

-
message: "#^Parameter \\#1 \\$string of function htmlspecialchars expects string, Neos\\\\Party\\\\Domain\\\\Model\\\\PersonName given\\.$#"
count: 1
Expand Down

0 comments on commit ae20335

Please sign in to comment.