N°5809 Fix compilation error due to CASLogger VS LoggerInterface in psr/log

"Declaration of Combodo\iTop\Cas\CASLogger::emergency($message, array $context = []) must be compatible with Psr\Log\LoggerInterface::emergency(Stringable|string $message, array $context = [])"

psr/log 3.0.0 brings the BC break
Switching to 2.0.0 is nice as it will bring improvements for PHP 8.0+ !
So adding psr/log ^2.0.0 to composer.json
This commit is contained in:
Pierre Goiffon
2024-01-26 10:27:45 +01:00
parent dfb5a4875a
commit ac44ffcdff
12 changed files with 44 additions and 47 deletions

View File

@@ -19,7 +19,7 @@ trait LoggerAwareTrait
*
* @param LoggerInterface $logger
*/
public function setLogger(LoggerInterface $logger): void
public function setLogger(LoggerInterface $logger)
{
$this->logger = $logger;
}