Commit d90b86ec authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Corrections de signatures de méthodes incompatibles avec la classe mère ou...

Corrections de signatures de méthodes incompatibles avec la classe mère ou interface implémentée, dont certaines déclenchaient un E_WARNING en PHP 7.2
parent 456b94d9
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -231,10 +231,7 @@ class Cas extends AbstractAdapter implements EventManagerAwareInterface, Service
    }

    /**
     * Inject an EventManager instance
     *
     * @param  EventManagerInterface $eventManager
     * @return self
     * {@inheritdoc}
     */
    public function setEventManager(EventManagerInterface $eventManager)
    {
+1 −4
Original line number Diff line number Diff line
@@ -293,10 +293,7 @@ class Ldap extends AbstractAdapter implements ServiceLocatorAwareInterface, Even
    }

    /**
     * Inject an EventManager instance
     *
     * @param  EventManagerInterface $eventManager
     * @return Ldap
     * {@inheritdoc}
     */
    public function setEventManager(EventManagerInterface $eventManager)
    {
+1 −4
Original line number Diff line number Diff line
@@ -139,10 +139,7 @@ class Chain implements StorageInterface, EventManagerAwareInterface
    }

    /**
     * Inject an EventManager instance
     *
     * @param  EventManagerInterface $eventManager
     * @return self
     * {@inheritdoc}
     */
    public function setEventManager(EventManagerInterface $eventManager)
    {
+1 −5
Original line number Diff line number Diff line
@@ -189,11 +189,7 @@ abstract class AbstractRole implements RoleInterface
    }

    /**
     * Add a user to the role.
     *
     * @param UserInterface $user
     *
     * @return void
     * {@inheritdoc}
     */
    public function addUser(UserInterface $user)
    {
+24 −14
Original line number Diff line number Diff line
@@ -93,12 +93,13 @@ abstract class AbstractUser implements UserInterface, ProviderInterface
     * Set id.
     *
     * @param int $id
     *
     * @return void
     * @return self
     */
    public function setId($id)
    {
        $this->id = (int) $id;

        return $this;
    }

    /**
@@ -115,12 +116,13 @@ abstract class AbstractUser implements UserInterface, ProviderInterface
     * Set username.
     *
     * @param string $username
     *
     * @return void
     * @return self
     */
    public function setUsername($username)
    {
        $this->username = $username;

        return $this;
    }

    /**
@@ -137,12 +139,13 @@ abstract class AbstractUser implements UserInterface, ProviderInterface
     * Set email.
     *
     * @param string $email
     *
     * @return void
     * @return self
     */
    public function setEmail($email)
    {
        $this->email = $email;

        return $this;
    }

    /**
@@ -159,12 +162,13 @@ abstract class AbstractUser implements UserInterface, ProviderInterface
     * Set displayName.
     *
     * @param string $displayName
     *
     * @return void
     * @return self
     */
    public function setDisplayName($displayName)
    {
        $this->displayName = $displayName;

        return $this;
    }

    /**
@@ -181,12 +185,13 @@ abstract class AbstractUser implements UserInterface, ProviderInterface
     * Set password.
     *
     * @param string $password
     *
     * @return void
     * @return self
     */
    public function setPassword($password)
    {
        $this->password = $password;

        return $this;
    }

    /**
@@ -203,12 +208,13 @@ abstract class AbstractUser implements UserInterface, ProviderInterface
     * Set state.
     *
     * @param int $state
     *
     * @return void
     * @return self
     */
    public function setState($state)
    {
        $this->state = $state;

        return $this;
    }

    /**
@@ -221,10 +227,13 @@ abstract class AbstractUser implements UserInterface, ProviderInterface

    /**
     * @param string $passwordResetToken
     * @return self
     */
    public function setPasswordResetToken($passwordResetToken = null)
    {
        $this->passwordResetToken = $passwordResetToken;

        return $this;
    }

    /**
@@ -241,12 +250,13 @@ abstract class AbstractUser implements UserInterface, ProviderInterface
     * Add a role to the user.
     *
     * @param RoleInterface $role
     *
     * @return void
     * @return self
     */
    public function addRole(RoleInterface $role)
    {
        $this->roles->add($role);

        return $this;
    }

    /**
Loading