Commit 36f1ff84 authored by Laurent Lécluse's avatar Laurent Lécluse
Browse files

Utilisation de Throwable, car PHP 7.3 et > peut aussi utiliser des erreurs de...

Utilisation de Throwable, car PHP 7.3 et > peut aussi utiliser des erreurs de type Error en plus des Exceptions
parent ed829f91
Pipeline #5951 failed with stage
in 11 seconds
......@@ -76,14 +76,11 @@ class MouchardListenerException implements MouchardListenerInterface
/**
* @param int $errno
* @param string $errstr
* @param string $errfile
* @param int $errline
* @param \Throwable $exception
*
* @return MouchardMessage
*/
private function makeMessage(Exception $exception)
private function makeMessage(\Throwable $exception)
{
$message = new MouchardMessage();
$message->setCode($exception->getCode());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment