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.

Issues (47)

examples/error/index.php (3 issues)

1
<?php
2
3
require \dirname(\dirname(__DIR__)) . '/vendor/autoload.php';
4
5
use React\EventLoop\Factory;
6
use WyriHaximus\React\ChildProcess\Messenger\Factory as MessengerFactory;
7
use WyriHaximus\React\ChildProcess\Messenger\Messages\Factory as MessageFactory;
8
use WyriHaximus\React\ChildProcess\Messenger\Messages\Payload;
9
use WyriHaximus\React\ChildProcess\Messenger\Messenger;
10
11
$loop = Factory::create();
0 ignored issues
show
Deprecated Code introduced by
The function React\EventLoop\Factory::create() has been deprecated: 1.2.0 See Loop::get() instead. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

11
$loop = /** @scrutinizer ignore-deprecated */ Factory::create();

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
12
13
MessengerFactory::parentFromClass('\ExamplesChildProcess', $loop)->then(function (Messenger $messenger) {
14
    return $messenger->rpc(
15
        MessageFactory::rpc('error')
16
    )->always(function () use ($messenger) {
0 ignored issues
show
The method always() does not exist on React\Promise\PromiseInterface. It seems like you code against a sub-type of said class. However, the method does not exist in React\Promise\CancellablePromiseInterface. Are you sure you never get one of those? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

16
    )->/** @scrutinizer ignore-call */ always(function () use ($messenger) {
Loading history...
17
        $messenger->softTerminate();
18
    });
19
})->done(function (Payload $result) {
0 ignored issues
show
The parameter $result is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

19
})->done(function (/** @scrutinizer ignore-unused */ Payload $result) {

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
20
    throw new Exception('Should never reach this!');
21
}, function ($et) {
22
    echo (string)$et;
23
});
24
25
$loop->run();
26