Skip to content

Commit

Permalink
fixed deprecated dibi::IDENTIFIER -> Fuent::IDENTIFIER
Browse files Browse the repository at this point in the history
  • Loading branch information
to23mas committed Nov 1, 2024
1 parent 277ca60 commit b9c55a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/DataSource/DibiFluentDataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Contributte\Datagrid\Filter\FilterText;
use Contributte\Datagrid\Utils\DateTimeHelper;
use Contributte\Datagrid\Utils\Sorting;
use dibi;
use Dibi\Fluent;
use Dibi\Helpers;
use ReflectionClass;
Expand Down Expand Up @@ -167,7 +166,7 @@ protected function applyFilterText(FilterText $filter): void
$or = [];

foreach ($condition as $column => $value) {
$column = Helpers::escape($driver, $column, dibi::IDENTIFIER);
$column = Helpers::escape($driver, $column, Fluent::IDENTIFIER);

Check failure on line 169 in src/DataSource/DibiFluentDataSource.php

View workflow job for this annotation

GitHub Actions / Phpstan / Phpstan (8.3)

Access to undefined constant Dibi\Fluent::IDENTIFIER.

if ($filter->isExactSearch()) {
$this->dataSource->where(sprintf('%s = %%s', $column), $value);
Expand Down
3 changes: 1 addition & 2 deletions src/DataSource/DibiFluentMssqlDataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Contributte\Datagrid\Filter\FilterDateRange;
use Contributte\Datagrid\Filter\FilterText;
use Contributte\Datagrid\Utils\DateTimeHelper;
use dibi;
use Dibi\Fluent;
use Dibi\Helpers;
use Dibi\Result;
Expand Down Expand Up @@ -108,7 +107,7 @@ protected function applyFilterText(FilterText $filter): void
$or = [];

foreach ($condition as $column => $value) {
$column = Helpers::escape($driver, $column, dibi::IDENTIFIER);
$column = Helpers::escape($driver, $column, Fluent::IDENTIFIER);

Check failure on line 110 in src/DataSource/DibiFluentMssqlDataSource.php

View workflow job for this annotation

GitHub Actions / Phpstan / Phpstan (8.3)

Access to undefined constant Dibi\Fluent::IDENTIFIER.

if ($filter->isExactSearch()) {
$this->dataSource->where(sprintf('%s = %%s', $column), $value);
Expand Down

0 comments on commit b9c55a4

Please sign in to comment.