GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Event
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 2
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 1
dl 0
loc 2
c 2
b 0
f 0
wmc 0
1
<?php
2
3
namespace EightPoints\Bundle\GuzzleBundle\Events;
4
5
use Symfony\Component\EventDispatcher\Event as BaseEvent;
6
use Symfony\Component\EventDispatcher\EventDispatcher;
7
use Symfony\Contracts\EventDispatcher\Event as ContractsBaseEvent;
8
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
9
10
/**
11
 * @see: https://github.com/8p/EightPointsGuzzleBundle/pull/261
12
 * @see: https://github.com/8p/EightPointsGuzzleBundle/pull/265
13
 *
14
 * SF 4.3 introduced Contracts and deprecated interfaces used before.
15
 * This file is a layer to support different versions and don't cause deprecation messages.
16
 */
17
if (is_subclass_of(EventDispatcher::class, EventDispatcherInterface::class)) {
18
    class Event extends ContractsBaseEvent
19
    {
20
    }
21
} else {
22
    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

22
    class Event extends /** @scrutinizer ignore-deprecated */ BaseEvent
Loading history...
23
    {
24
    }
25
}
26