Fatal error: Declaration of _JchOptimizeVendor\Laminas\ServiceManager\ServiceManager::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool in /home1/alhabib1/public_html/administrator/components/com_jchoptimize/lib/vendor/laminas/laminas-servicemanager/src/ServiceManager.php on line 248
Compile Error: Declaration of _JchOptimizeVendor\Laminas\ServiceManager\ServiceManager::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool (500 Whoops, looks like something went wrong.)

FatalError

HTTP 500 Whoops, looks like something went wrong.

Compile Error: Declaration of _JchOptimizeVendor\Laminas\ServiceManager\ServiceManager::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool

Exception

Symfony\Component\ErrorHandler\Error\ FatalError

Show exception properties
Symfony\Component\ErrorHandler\Error\FatalError {#1257
  -error: array:4 [
    "type" => 64
    "message" => "Declaration of _JchOptimizeVendor\Laminas\ServiceManager\ServiceManager::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool"
    "file" => "/home1/alhabib1/public_html/administrator/components/com_jchoptimize/lib/vendor/laminas/laminas-servicemanager/src/ServiceManager.php"
    "line" => 248
  ]
}
  1. /**
  2. * @param class-string|string $name
  3. *
  4. * @return bool
  5. */
  6. public function has($name)
  7. {
  8. // Check static services and factories first to speedup the most common requests.
  9. return $this->staticServiceOrFactoryCanCreate($name) || $this->abstractFactoryCanCreate($name);
  10. }

Stack Trace

FatalError
Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Declaration of _JchOptimizeVendor\Laminas\ServiceManager\ServiceManager::has($name) must be compatible with Psr\Container\ContainerInterface::has(string $id): bool

  at /home1/alhabib1/public_html/administrator/components/com_jchoptimize/lib/vendor/laminas/laminas-servicemanager/src/ServiceManager.php:248