| 1 | <?php |
||
| 7 | class EloquentEngine extends BaseEngine |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Add column in collection. |
||
| 11 | * |
||
| 12 | * @param string|string[] $name |
||
| 13 | * @param string|callable|bool|int|null $content |
||
| 14 | * @param bool|int $order |
||
| 15 | * @return $this |
||
| 16 | */ |
||
| 17 | public function addColumn($name, $content = null, $order = false) |
||
| 40 | } |
||
| 41 |
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.