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.
Completed
Push — master ( 412ce5...411a6d )
by Freek
26s queued 11s
created

src/Shell/Shell.php (1 issue)

non-existent classes in instanceof checks.

Bug Major

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Spatie\WebTinker\Shell;
4
5
use Psy\Shell as PsyShell;
6
7
class Shell extends PsyShell
8
{
9
    protected function readline()
10
    {
11
        if (!empty($this->inputBuffer)) {
12
            $line = \array_shift($this->inputBuffer);
13
            if (!$line instanceof SilentInput) {
0 ignored issues
show
The class Spatie\WebTinker\Shell\SilentInput does not exist. Did you forget a USE statement, or did you not list all dependencies?

This error could be the result of:

1. Missing dependencies

PHP Analyzer uses your composer.json file (if available) to determine the dependencies of your project and to determine all the available classes and functions. It expects the composer.json to be in the root folder of your repository.

Are you sure this class is defined by one of your dependencies, or did you maybe not list a dependency in either the require or require-dev section?

2. Missing use statement

PHP does not complain about undefined classes in ìnstanceof checks. For example, the following PHP code will work perfectly fine:

if ($x instanceof DoesNotExist) {
    // Do something.
}

If you have not tested against this specific condition, such errors might go unnoticed.

Loading history...
14
                $this->output->writeln(\sprintf('<aside>%s %s</aside>', static::REPLAY, OutputFormatter::escape($line)));
15
            }
16
17
            return $line;
18
        }
19
20
        return false;
21
    }
22
}
23