Commit 5fef0160 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Adaptation php8.4

parent 63ab8306
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ class AbstractFactory implements AbstractFactoryInterface
        return strpos($requestedName, __NAMESPACE__) === 0 && class_exists($requestedName);
    }

    public function __invoke(ContainerInterface $container, $requestedName, array $options = null)
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null)
    {
        switch ($requestedName) {
            case __NAMESPACE__ . '\Ldap':
+2 −2
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ use ZfcUser\Options\ModuleOptions;

class AdapterChainServiceFactory
{
    public function __invoke(ContainerInterface $container, $requestedName, array $options = null): AdapterChain
    public function __invoke(ContainerInterface $container, $requestedName, ?array $options = null): AdapterChain
    {
        $chain = new AdapterChain();

@@ -50,7 +50,7 @@ class AdapterChainServiceFactory
     * @param ContainerInterface|null $container (optional) Service Locator
     * @return ModuleOptions $options
     */
    public function getOptions(ContainerInterface $container = null): ModuleOptions
    public function getOptions(?ContainerInterface $container = null): ModuleOptions
    {
        if (!$this->options) {
            if (!$container) {
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ class CasAdapterFactory
     * @param array|null $options
     * @return Cas
     */
    public function __invoke(ContainerInterface $container, string $requestedName, array $options = null)
    public function __invoke(ContainerInterface $container, string $requestedName, ?array $options = null)
    {
        $adapter = new Cas();
        $adapter->setStorage(new Session(Cas::class));
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ class LdapAdapterFactory
     * @param array|null $options
     * @return Ldap
     */
    public function __invoke(ContainerInterface $container, string $requestedName, array $options = null)
    public function __invoke(ContainerInterface $container, string $requestedName, ?array $options = null)
    {
        $adapter = new Ldap();
        $adapter->setStorage(new Session(Ldap::class));
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ class ShibAdapterFactory
     * @throws \Psr\Container\ContainerExceptionInterface
     * @throws \Psr\Container\NotFoundExceptionInterface
     */
    public function __invoke(ContainerInterface $container, string $requestedName, array $options = null): Shib
    public function __invoke(ContainerInterface $container, string $requestedName, ?array $options = null): Shib
    {
        $adapter = new Shib();
        $adapter->setStorage(new Session(Shib::class));
Loading