Skip to content

Commit

Permalink
Rector
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Dec 7, 2024
1 parent e73d369 commit a55e98f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Exporter/DataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private function findFieldName(ProxyQueryInterface $query, string $alias): ?stri
$joinAlias = $joinPart->getAlias();

if ($joinAlias === $alias) {
$joinParts = explode('.', $join);
$joinParts = explode('.', (string) $join);

return end($joinParts);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Filter/ModelFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private function getParentAlias(ProxyQueryInterface $query, string $alias): stri
if (isset($joins[$rootAlias])) {
foreach ($joins[$rootAlias] as $join) {
if ($join->getAlias() === $alias) {
$parts = explode('.', $join->getJoin());
$parts = explode('.', (string) $join->getJoin());
$parentAlias = $parts[0];

break;
Expand Down
2 changes: 1 addition & 1 deletion src/Util/SmartPaginatorFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private static function hasOrderByWithToManyAssociation(ProxyQueryInterface $pro
foreach ($orderByParts as $orderByPart) {
foreach ($orderByPart->getParts() as $part) {
foreach ($joinAliases as $joinAlias) {
if (str_starts_with($part, $joinAlias.'.')) {
if (str_starts_with((string) $part, $joinAlias.'.')) {
return true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Filter/CallbackFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function testFilterMethod(): void

$filter = new CallbackFilter();
$filter->initialize('field_name', [
'callback' => [$this, 'customCallback'],
'callback' => $this->customCallback(...),
]);

$filter->filter($proxyQuery, 'alias', 'field', FilterData::fromArray(['value' => 'myValue']));
Expand Down

0 comments on commit a55e98f

Please sign in to comment.