| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare (strict_types=1); |
||
| 26 | public function __construct(string $builder, string $builderType) |
||
| 27 | { |
||
| 28 | $builder = __NAMESPACE__."\\$builder\\$builderType$builder"; |
||
| 29 | $builder = new $builder; |
||
| 30 | |||
| 31 | if (!($builder instanceof BuildableInterface)) |
||
| 32 | { |
||
| 33 | throw new \Exception(); |
||
| 34 | } |
||
| 35 | |||
| 36 | $this->builder = $builder; |
||
|
|
|||
| 37 | } |
||
| 38 | |||
| 49 |
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..