Commit 8f6b71d4 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Fixes PHP 8.4

parent 2fce8ddb
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for src/UnicaenLdap/LdapFactory.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class LdapFactory implements FactoryInterface
        return $this->__invoke($serviceLocator, '?');
    }

    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
    {
        /* @var $options \UnicaenLdap\Options\ModuleOptions */
        $options = $container->get('ldapOptions');
+1 −1
Changes for src/UnicaenLdap/Options/ModuleOptionsFactory.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ class ModuleOptionsFactory implements FactoryInterface
        return $this->__invoke($serviceLocator, '?');
    }

    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
    {
        $config       = $container->get('Configuration');
        $moduleConfig = isset($config['unicaen-ldap']) ? $config['unicaen-ldap'] : array();
+1 −1
Changes for src/UnicaenLdap/Service/GenericFactory.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ class GenericFactory implements FactoryInterface
     * @param array|null $options
     * @return object|Generic
     */
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
    {
        /**
         * @var Ldap $ldap
+1 −1
Changes for src/UnicaenLdap/Service/Group.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ class Group extends AbstractService
     * @param array|Collection $groups
     * @return array
     */
    public function filterValids( $groups, DateTime $dateObservation = null )
    public function filterValids( $groups, ?DateTime $dateObservation = null )
    {
        if (empty($dateObservation)) $dateObservation = new DateTime;

+1 −1
Changes for src/UnicaenLdap/Service/GroupFactory.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ class GroupFactory implements FactoryInterface
     * @param array|null $options
     * @return object|Group
     */
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
    {
        /**
         * @var Ldap $ldap
Loading