Skip to content

Commit

Permalink
Merge branch 'hotfix/5.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
pfilsx committed Jan 9, 2020
2 parents f561d04 + a7c8ff4 commit f3f5d70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"minimum-stability": "stable",
"require": {
"php": ">=7.1",
"ext-pdo": "*",
"symfony/framework-bundle": "^4.0 || ^5.0",
"symfony/orm-pack": "*",
"symfony/twig-bundle": "^4.0 || ^5.0",
Expand Down
6 changes: 2 additions & 4 deletions src/Grid/Providers/QueryBuilderDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@ protected function equalDate($attribute, $value): void
$this->builder
->andWhere($this->builder->expr()->gte($attribute, ':' . $placeholderName))
->andWhere($this->builder->expr()->lt($attribute, ':' . $placeholderNameNext));
$this->builder->setParameters([
$placeholderName => $date,
$placeholderNameNext => $nextDate
]);
$this->builder->setParameter($placeholderName, $date);
$this->builder->setParameter($placeholderNameNext, $nextDate);
}

protected function ltDate($attribute, $value): void
Expand Down

0 comments on commit f3f5d70

Please sign in to comment.