Remove all "@phpstan-ignore-line" entries.

This commit is contained in:
James Cole
2026-03-06 07:39:12 +01:00
parent 705138aa27
commit 12f19c6c34
78 changed files with 254 additions and 157 deletions

View File

@@ -101,7 +101,7 @@ class UserGroupRepository implements UserGroupRepositoryInterface, UserGroupInte
'webhooks',
];
foreach ($objects as $object) {
foreach ($userGroup->{$object}()->get() as $item) { // @phpstan-ignore-line
foreach ($userGroup->{$object}()->get() as $item) {
$item->delete();
}
}
@@ -257,7 +257,7 @@ class UserGroupRepository implements UserGroupRepositoryInterface, UserGroupInte
0 === $ownerCount
&& (
0 === count($data['roles'])
|| count($data['roles']) > 0 // @phpstan-ignore-line
|| count($data['roles']) > 0
&& !in_array(UserRoleEnum::OWNER->value, $data['roles'], true)
)
) {