diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 3f9b34d..e7981c9 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -10,11 +10,6 @@ parameters: count: 1 path: src/bundle/Command/AuditUserDatabaseCommand.php - - - message: "#^Negated boolean expression is always false\\.$#" - count: 1 - path: src/bundle/Command/UpdateUserCommand.php - - message: "#^Method Ibexa\\\\Bundle\\\\User\\\\Controller\\\\Controller\\:\\:performAccessCheck\\(\\) has no return type specified\\.$#" count: 1 diff --git a/src/bundle/Command/UpdateUserCommand.php b/src/bundle/Command/UpdateUserCommand.php index 805f92a..ce64d99 100644 --- a/src/bundle/Command/UpdateUserCommand.php +++ b/src/bundle/Command/UpdateUserCommand.php @@ -127,6 +127,6 @@ private function resolveEnabledFlag(bool $enable, bool $disable): ?bool return null; } - return $enable === true || !$disable; + return $enable === true; } }