| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 60 | 1 | public function __construct($name, $type = null, $byRef = false, $variadic = false, $default = null, Param $ast = null) |
|
| 61 | { |
||
| 62 | 1 | $this->name = $name; |
|
| 63 | 1 | $this->type = $type; |
|
| 64 | 1 | $this->byRef = $byRef; |
|
| 65 | 1 | $this->variadic = $variadic; |
|
| 66 | 1 | $this->default = $default; |
|
| 67 | 1 | $this->ast = $ast; |
|
| 68 | 1 | } |
|
| 69 | |||
| 136 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.