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)) { |
||
0 ignored issues
–
show
|
|||
12 | $line = \array_shift($this->inputBuffer); |
||
0 ignored issues
–
show
The property
inputBuffer cannot be accessed from this context as it is declared private in class Psy\Shell .
This check looks for access to properties that are not accessible from the current context. If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.
Loading history...
|
|||
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 dependenciesPHP Analyzer uses your Are you sure this class is defined by one of your dependencies, or did you maybe
not list a dependency in either the 2. Missing use statementPHP does not complain about undefined classes in 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))); |
||
0 ignored issues
–
show
The property
output cannot be accessed from this context as it is declared private in class Psy\Shell .
This check looks for access to properties that are not accessible from the current context. If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.
Loading history...
|
|||
15 | } |
||
16 | |||
17 | return $line; |
||
18 | } |
||
19 | |||
20 | return false; |
||
21 | } |
||
22 | } |
||
23 |
This check looks for access to properties that are not accessible from the current context.
If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.