Skip to content

Commit

Permalink
Update FileApplicationsDataProvider.php (#61)
Browse files Browse the repository at this point in the history
Avoid type error in some weard cases.
  • Loading branch information
dxops committed Dec 7, 2021
1 parent 4127850 commit d75a48e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Layout/DataProvider/FileApplicationsDataProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public function isValidForField(string $className, string $fieldName): bool
return false;
}

$config = (bool)$this->configProvider->getConfig($className, $fieldName);
$config = $this->configProvider->getConfig($className, $fieldName);

return $config->get('visible');
return (bool)$config->get('visible');
}
}

0 comments on commit d75a48e

Please sign in to comment.