When my code have status include 0, the input filter don't work fine.
`
/**
* Add a binding to the query.
*
* @param string $value
* @param Model|null $model
*/
public function addBinding($value, Model $model)
{
if (empty($value)) { // when value is string "0" will not work fine
return;
}
if ($this->type == 'like') {
$model->where($this->getColumnName(), 'like', "%{$value}%");
return;
}
if (in_array($this->type, ['date', 'time'])) {
$method = 'where'.ucfirst($this->type);
$model->{$method}($this->getColumnName(), $value);
return;
}
$model->where($this->getColumnName(), $value);
}
`
so and now , fix it to
`
/**
Add a binding to the query.
@param string $value
@param Model|null $model
*/
public function addBinding($value, Model $model)
{
master
Description:
When my code have status include 0, the input filter don't work fine.
`
`
so and now , fix it to
`
/**
@param Model|null $model */ public function addBinding($value, Model $model) {
}
`
pls check it, thank you!
Steps To Reproduce: