Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
60 | public function __construct($name, $type = null, $byRef = false, $variadic = false, $default = null, Param $ast = null) |
||
61 | { |
||
62 | $this->name = $name; |
||
63 | $this->type = $type; |
||
64 | $this->byRef = $byRef; |
||
65 | $this->variadic = $variadic; |
||
66 | $this->default = $default; |
||
67 | $this->ast = $ast; |
||
68 | } |
||
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.