Skip to content

Commit

Permalink
Remove assert and add casting
Browse files Browse the repository at this point in the history
  • Loading branch information
tbuczen committed Nov 25, 2021
1 parent 562c490 commit d99f2f4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Doctrine/Orm/Filter/AttributeFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,10 @@ protected function filterProperty(
[$alias] = $this->addJoinsForNestedProperty($property . '.id', $alias, $queryBuilder, $queryNameGenerator, $resourceClass);
}

Assert::string($alias);

$this->addWhere(
$queryBuilder,
$queryNameGenerator,
$alias,
(string) $alias,
$property,
$attributeId,
$extractedValue
Expand Down

0 comments on commit d99f2f4

Please sign in to comment.