FatalError

HTTP 500 Internal Server Error

Compile Error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs): PDOStatement|false

Exception

Symfony\Component\ErrorHandler\Error\ FatalError

  1.     }
  2.     /**
  3.      * {@inheritdoc}
  4.      */
  5.     public function query()
  6.     {
  7.         $args func_get_args();
  8.         try {
  9.             $stmt parent::query(...$args);

Logs

Level Channel Message
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: Return type of Symfony\Component\HttpFoundation\ParameterBag::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: Return type of Symfony\Component\HttpFoundation\ParameterBag::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: Return type of Symfony\Component\HttpFoundation\HeaderBag::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: Return type of Symfony\Component\HttpFoundation\HeaderBag::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: Return type of Symfony\Component\Config\Resource\GlobResource::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: Return type of Twig\Profiler\Profile::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
{
    "exception": {}
}
DEBUG 20:19:54 php Warning: Zend OPcache API is restricted by "restrict_api" configuration directive
{
    "exception": {
        "severity": 2,
        "file": "/home/gwmaeusugb/sf4agenceimmo/vendor/symfony/error-handler/DebugClassLoader.php",
        "line": 333,
        "trace": [
            {
                "file": "/home/gwmaeusugb/sf4agenceimmo/vendor/symfony/stopwatch/StopwatchEvent.php",
                "line": 105,
                "function": "loadClass",
                "class": "Symfony\\Component\\ErrorHandler\\DebugClassLoader",
                "type": "->"
            }
        ],
        "count": 91
    }
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
INFO 20:19:54 request Matched route "_profiler_exception".
{
    "route": "_profiler_exception",
    "route_parameters": {
        "_route": "_profiler_exception",
        "_controller": "web_profiler.controller.exception_panel::body",
        "token": "9ba4a9"
    },
    "request_uri": "https://sf4agenceimmo.gwma.eu/_profiler/9ba4a9/exception",
    "method": "GET"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\DebugHandlersListener::configure"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ValidateRequestListener::onKernelRequest"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\SessionListener::onKernelRequest"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::setDefaultLocale".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::setDefaultLocale"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\RouterListener::onKernelRequest"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\ResolveControllerNameSubscriber::resolveControllerName".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\FrameworkBundle\\EventListener\\ResolveControllerNameSubscriber::resolveControllerName"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener::onKernelRequest"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleAwareListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\LocaleAwareListener::onKernelRequest"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::configureLogoutUrlGenerator".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::configureLogoutUrlGenerator"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Symfony\\Bundle\\SecurityBundle\\Debug\\TraceableFirewallListener::onKernelRequest"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.request" to listener "Knp\Bundle\PaginatorBundle\Subscriber\SlidingPaginationSubscriber::onKernelRequest".
{
    "event": "kernel.request",
    "listener": "Knp\\Bundle\\PaginatorBundle\\Subscriber\\SlidingPaginationSubscriber::onKernelRequest"
}
INFO 20:19:54 php Deprecated: Return type of Symfony\Component\VarDumper\Cloner\Data::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: Return type of Symfony\Component\VarDumper\Cloner\Data::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: Return type of Symfony\Component\VarDumper\Cloner\Data::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: Return type of Symfony\Component\VarDumper\Cloner\Data::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: Return type of Symfony\Component\VarDumper\Cloner\Data::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: Return type of Symfony\Component\VarDumper\Cloner\Data::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: Method ReflectionParameter::getClass() is deprecated
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: Method ReflectionParameter::getClass() is deprecated
{
    "exception": {}
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Bundle\\FrameworkBundle\\DataCollector\\RouterDataCollector::onKernelController"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.controller" to listener "Symfony\Component\HttpKernel\DataCollector\RequestDataCollector::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector::onKernelController"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\ControllerListener::onKernelController"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\ParamConverterListener::onKernelController"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\HttpCacheListener::onKernelController"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
{
    "event": "kernel.controller",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\TemplateListener::onKernelController"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.controller_arguments" to listener "Symfony\Component\HttpKernel\EventListener\ErrorListener::onControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Symfony\\Component\\HttpKernel\\EventListener\\ErrorListener::onControllerArguments"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\SecurityListener::onKernelControllerArguments"
}
INFO 20:19:54 php Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated
{
    "exception": {}
}
DEBUG 20:19:54 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\IsGrantedListener::onKernelControllerArguments".
{
    "event": "kernel.controller_arguments",
    "listener": "Sensio\\Bundle\\FrameworkExtraBundle\\EventListener\\IsGrantedListener::onKernelControllerArguments"
}

Stack Trace

FatalError

Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs): PDOStatement|false

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:73