Passed
Pull Request — master (#17)
by Theo
01:41
created

Event

Complexity

Total Complexity 0

Size/Duplication

Total Lines 2
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 2 Features 0
Metric Value
wmc 0
eloc 1
c 2
b 2
f 0
dl 0
loc 2
ccs 0
cts 0
cp 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace CalendarBundle\Event;
6
7
use Symfony\Component\EventDispatcher\Event as BaseEvent;
8
use Symfony\Component\EventDispatcher\EventDispatcher;
9
use Symfony\Contracts\EventDispatcher\Event as ContractsBaseEvent;
10
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
11
12
// phpcs:disable
13 1
if (is_subclass_of(EventDispatcher::class, EventDispatcherInterface::class)) {
14
    class Event extends ContractsBaseEvent
15
    {
16
    }
17
} else {
18
    class Event extends BaseEvent
0 ignored issues
show
Deprecated Code introduced by
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

18
    class Event extends /** @scrutinizer ignore-deprecated */ BaseEvent
Loading history...
19
    {
20
    }
21
}
22
// phpcs:enable
23