Commit 068ca159 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Adaptation php8.4

parent 9c9c4f70
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ use ZfcUser\Authentication\Adapter\Exception\OptionsNotFoundException;

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

+1 −3
Original line number Diff line number Diff line
@@ -2,9 +2,7 @@

namespace ZfcUser\Authentication\Adapter\Exception;

use Laminas\Math\Exception\RuntimeException;

class OptionsNotFoundException extends RuntimeException
class OptionsNotFoundException extends \RuntimeException
{

}
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ use ZfcUser\Authentication\Adapter\Db;

class DbFactory implements FactoryInterface
{
    public function __invoke(ContainerInterface $serviceLocator, $requestedName, array $options = null)
    public function __invoke(ContainerInterface $serviceLocator, $requestedName, ?array $options = null)
    {
        $db = new Db();
        $db->setServiceManager($serviceLocator);
+1 −1
Original line number Diff line number Diff line
@@ -9,7 +9,7 @@ use ZfcUser\Authentication\Storage\Db;

class DbFactory implements FactoryInterface
{
    public function __invoke(ContainerInterface $serviceLocator, $requestedName, array $options = null)
    public function __invoke(ContainerInterface $serviceLocator, $requestedName, ?array $options = null)
    {
        $db = new Db();
        $db->setServiceManager($serviceLocator);
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ use Laminas\ServiceManager\ServiceLocatorInterface;

class AuthenticationService implements FactoryInterface
{
    public function __invoke(ContainerInterface $serviceLocator, $requestedName, array $options = null)
    public function __invoke(ContainerInterface $serviceLocator, $requestedName, ?array $options = null)
    {
        return new \Laminas\Authentication\AuthenticationService(
            $serviceLocator->get('ZfcUser\Authentication\Storage\Db'),
Loading