Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Push — master ( 5ec16c...53ae4d )
by Jérémiah
18:58
created

src/Event/ExecutorResultEvent.php (1 issue)

1
<?php
2
3
declare(strict_types=1);
4
5
namespace Overblog\GraphQLBundle\Event;
6
7
use GraphQL\Executor\ExecutionResult;
8
use Symfony\Contracts\EventDispatcher\Event;
9
10
// TODO(mcg-web): remove hack after migrating Symfony >= 4.3
11 1
if (EventDispatcherVersionHelper::isForLegacy()) {
12
    final class ExecutorResultEvent extends \Symfony\Component\EventDispatcher\Event
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

12
    final class ExecutorResultEvent extends /** @scrutinizer ignore-deprecated */ \Symfony\Component\EventDispatcher\Event
Loading history...
13
    {
14
        /** @var ExecutionResult */
15
        private $result;
16
17
        public function __construct(ExecutionResult $result)
18
        {
19
            $this->result = $result;
20
        }
21
22
        /**
23
         * @return ExecutionResult
24
         */
25
        public function getResult(): ExecutionResult
26
        {
27
            return $this->result;
28
        }
29
    }
30
} else {
31
    final class ExecutorResultEvent extends Event
32
    {
33
        /** @var ExecutionResult */
34
        private $result;
35
36 83
        public function __construct(ExecutionResult $result)
37
        {
38 83
            $this->result = $result;
39 83
        }
40
41
        /**
42
         * @return ExecutionResult
43
         */
44 83
        public function getResult(): ExecutionResult
45
        {
46 83
            return $this->result;
47
        }
48
    }
49
}
50