| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2.032 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | 150 | public function __call($name, $arguments) { |
|
| 27 | 150 | if (count($arguments) != 0) { |
|
| 28 | throw new \InvalidArgumentException( |
||
| 29 | "No arguments are allowed for a reference to a variable."); |
||
| 30 | } |
||
| 31 | 150 | $this->rt->throw_on_missing_var($name); |
|
| 32 | |||
| 33 | 150 | $left = $this->rt->get_var($this->name); |
|
| 34 | 150 | $right = $this->rt->get_var($name); |
|
| 35 | 150 | $this->rt->add_rule( |
|
| 36 | 150 | new Rules\Rule($this->mode, $left, $this->relation, array($right))); |
|
| 37 | 150 | } |
|
| 38 | } |
||
| 39 |
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..