| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | public function check(ResultCollection $results) |
||
| 49 | { |
||
| 50 | $this->_results = $results; |
||
| 51 | $this->_envFilePath = $this->_checkCommand->getApplication()->getMagentoRootFolder() . '/app/etc/env.php'; |
||
| 52 | |||
| 53 | $envArray = include $this->_envFilePath; |
||
| 54 | $this->_env = $envArray; |
||
| 55 | $this->_dot = new Dot($envArray); |
||
| 56 | |||
| 57 | call_user_func([$this, 'checkEnv']); |
||
| 58 | } |
||
| 59 | |||
| 76 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.