1 | <?php |
||
9 | class JoinerFactory implements FactoryContract |
||
10 | { |
||
11 | /** |
||
12 | * Create new joiner instance. |
||
13 | * |
||
14 | * @param \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder $query |
||
15 | * @param \Illuminate\Database\Eloquent\Model $model |
||
16 | * @return \Sofa\Eloquence\Relations\Joiner |
||
17 | */ |
||
18 | public static function make($query, Model $model = null) |
||
27 | } |
||
28 |
It seems like you allow that null is being passed for a parameter, however the function which is called does not seem to accept null.
We recommend to add an additional type check (or disallow null for the parameter):