| 1 | <?php |
||
| 5 | class WithSearchQueryCriterion implements CriterionInterface |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | protected $searchQuery; |
||
| 9 | |||
| 10 | /** @var array */ |
||
| 11 | protected $field; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * WithSearchQueryCriterion constructor. |
||
| 15 | * |
||
| 16 | * @param string $searchQuery |
||
| 17 | * @param string|null $field |
||
| 18 | */ |
||
| 19 | public function __construct(string $searchQuery, string $field = null) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param \Illuminate\Database\Eloquent\Builder $query |
||
| 27 | * |
||
| 28 | * @return \Illuminate\Database\Eloquent\Builder |
||
| 29 | */ |
||
| 30 | public function apply($query) |
||
| 40 | } |
||
| 41 |
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..