Hi, i'm having problems with the generation certificate with mpdf, give me this error:
FatalError
HTTP 500 Whoops, looks like something went wrong.
Compile Error: Declaration of Mpdf\Mpdf::setLogger(Psr\Log\LoggerInterface $logger) must be compatible with Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger): void
Symfony\Component\ErrorHandler\Error\ FatalError
Show exception properties
in /var/www/html/w_escuelasen/plugins/guruextend/mpdf/vendor/mpdf/mpdf/src/Mpdf.php (line 1588)
/**
* @param \Psr\Log\LoggerInterface
*
* @return \Mpdf\Mpdf
*/
public function setLogger(LoggerInterface $logger)
{
$this->logger = $logger;
foreach ($this->services as $name) {
if ($this->$name && $this->$name instanceof \Psr\Log\LoggerAwareInterface) {
Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Declaration of Mpdf\Mpdf::setLogger(Psr\Log\LoggerInterface $logger) must be compatible with Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger): void
at /var/www/html/w_escuelasen/plugins/guruextend/mpdf/vendor/mpdf/mpdf/src/Mpdf.php:1588
I read what maybe i need mpdf version 8.1.6 to fix this error but i don't know how do it