Skip to content

Commit

Permalink
Update src/Service.php
Browse files Browse the repository at this point in the history
Co-authored-by: JiaJia Ji <[email protected]>
  • Loading branch information
aryaantony92 and kingjia90 authored Aug 2, 2023
1 parent c14578b commit ff26800
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function __construct(
*/
public function getFieldDefinitionAdapter(ClassDefinition\Data $fieldDefinition, bool $considerInheritance)
{
$fieldType = ($fieldDefinition->fieldtype) ?: $fieldDefinition->getFieldType();
$fieldType = $fieldDefinition->getFieldType();

if ($this->filterLocator->has($fieldType)) {
$adapter = $this->filterLocator->get($fieldType);
Expand Down

0 comments on commit ff26800

Please sign in to comment.