| 1 | <?php |
||
| 8 | class TerminalManager |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * $kernel. |
||
| 12 | * |
||
| 13 | * @var Recca0120\Terminal\Kernel |
||
| 14 | */ |
||
| 15 | protected $kernel; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * $config. |
||
| 19 | * |
||
| 20 | * @var array |
||
| 21 | */ |
||
| 22 | protected $config; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * __construct. |
||
| 26 | * |
||
| 27 | * @param \Recca0120\Terminal\Kernel $kernel [description] |
||
| 28 | * @param array $config |
||
| 29 | */ |
||
| 30 | 2 | public function __construct(Kernel $kernel, $config = []) |
|
| 31 | { |
||
| 32 | 2 | $this->kernel = $kernel; |
|
|
1 ignored issue
–
show
|
|||
| 33 | 2 | $this->config = Arr::except(array_merge([ |
|
| 34 | 2 | 'username' => 'LARAVEL', |
|
| 35 | 2 | 'hostname' => php_uname('n'), |
|
| 36 | 2 | 'os' => PHP_OS, |
|
| 37 | ], $config), [ |
||
| 38 | 2 | 'enabled', |
|
| 39 | 'whitelists', |
||
| 40 | 'route', |
||
| 41 | 'commands', |
||
| 42 | ]); |
||
| 43 | 2 | } |
|
| 44 | |||
| 45 | /** |
||
| 46 | * getConfig. |
||
| 47 | * |
||
| 48 | * @return array |
||
| 49 | */ |
||
| 50 | 1 | public function getConfig() |
|
| 54 | |||
| 55 | /** |
||
| 56 | * call. |
||
| 57 | * |
||
| 58 | * @param string $command |
||
| 59 | * @return int |
||
| 60 | */ |
||
| 61 | public function call($command) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * output. |
||
| 68 | * |
||
| 69 | * @return string |
||
| 70 | */ |
||
| 71 | public function output() |
||
| 75 | } |
||
| 76 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..