We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9044d7f commit f91ff62Copy full SHA for f91ff62
src/Bridge/Doctrine/Common/Filter/SearchFilterTrait.php
@@ -116,9 +116,9 @@ abstract protected function getPropertyAccessor(): PropertyAccessorInterface;
116
protected function getIdFromValue(string $value)
117
{
118
try {
119
- if (null !== $item = $this->getIriConverter()->getItemFromIri($value, ['fetch_data' => false])) {
120
- return $this->getPropertyAccessor()->getValue($item, 'id');
121
- }
+ $item = $this->getIriConverter()->getItemFromIri($value, ['fetch_data' => false]);
+
+ return $this->getPropertyAccessor()->getValue($item, 'id');
122
} catch (InvalidArgumentException $e) {
123
// Do nothing, return the raw value
124
}
0 commit comments