| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | public function getContentsAsStream() |
||
| 48 | { |
||
| 49 | $stream = @fopen(rawurldecode($this->resource), 'r'); |
||
| 50 | |||
| 51 | if ($stream === false) { |
||
| 52 | throw new \RuntimeException('Unable to open stream resource for ' . rawurldecode($this->resource)); |
||
| 53 | } |
||
| 54 | |||
| 55 | $this->streams[] = $stream; |
||
| 56 | |||
| 57 | return $stream; |
||
| 58 | } |
||
| 59 | } |
||
| 60 |
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..