mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-04 13:16:31 +00:00
Remove all "@phpstan-ignore-line" entries.
This commit is contained in:
@@ -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)
|
||||
)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user