Commit 74430ccd authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

UserWrapper: retourner un supannId null doit être possible.

parent 26bbf267
Loading
Loading
Loading
Loading
+3 −3
Changes for module/Application/src/Application/Entity/UserWrapper.php: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -167,9 +167,9 @@ class UserWrapper implements UserInterface
    }

    /**
     * Retourne soit le supannEmpId soit le supannEtuId, car l'un ou l'autre est forcément null.
     * Retourne soit le supannEmpId soit le supannEtuId, ou null.
     *
     * @return string
     * @return string|null
     */
    public function getSupannId()
    {
@@ -183,7 +183,7 @@ class UserWrapper implements UserInterface
            return $this->individu->getSupannId();
        }

        throw new LogicException("Cas imprévu!");
        return null;
    }

    /**