The class Symfony\Component\EventDispatcher\Event has been deprecated: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
10
final class ErrorFormattingEvent extends /** @scrutinizer ignore-deprecated */ \Symfony\Component\EventDispatcher\Event
Loading history...
11
{
12
/** @var Error */
13
private $error;
14
15
/** @var \ArrayObject */
16
private $formattedError;
17
18
public function __construct(Error $error, array $formattedError)
19
{
20
$this->error = $error;
21
$this->formattedError = new \ArrayObject($formattedError);
22
}
23
24
public function getError()
25
{
26
return $this->error;
27
}
28
29
/**
30
* @return \ArrayObject
31
*/
32
public function getFormattedError()
33
{
34
return $this->formattedError;
35
}
36
}
37
} else {
38
final class ErrorFormattingEvent extends Event
39
{
40
/** @var Error */
41
private $error;
42
43
/** @var \ArrayObject */
44
private $formattedError;
45
46
41
public function __construct(Error $error, array $formattedError)
47
{
48
41
$this->error = $error;
49
41
$this->formattedError = new \ArrayObject($formattedError);