Change string indexing from {0} to [0] (deprecated in PHP 7.4)

This commit is contained in:
Lőrinczy, Zsigmond
2019-11-09 20:46:53 +01:00
committed by Frédéric Guillot
parent 6c08225f76
commit 35602c0880
8 changed files with 9 additions and 9 deletions

View File

@@ -32,7 +32,7 @@ class TaskTitleFilter extends BaseFilter implements FilterInterface
*/
public function apply()
{
if (ctype_digit($this->value) || (strlen($this->value) > 1 && $this->value{0} === '#' && ctype_digit(substr($this->value, 1)))) {
if (ctype_digit($this->value) || (strlen($this->value) > 1 && $this->value[0] === '#' && ctype_digit(substr($this->value, 1)))) {
$this->query->beginOr();
$this->query->eq(TaskModel::TABLE.'.id', str_replace('#', '', $this->value));
$this->query->ilike(TaskModel::TABLE.'.title', '%'.$this->value.'%');