Fixed static analysis issues.

This commit is contained in:
Jan Böhmer 2023-01-08 18:30:41 +01:00
parent e679317b4b
commit 257c67b6c1
4 changed files with 6 additions and 5 deletions

View file

@ -66,13 +66,14 @@ class EntityColumn extends AbstractColumn
$resolver->setDefault('render', function (Options $options) {
return function ($value, $context) use ($options) {
/** @var AbstractNamedDBElement|null $entity */
if ($this->accessor->isReadable($context, $options['property'])) {
$entity = $this->accessor->getValue($context, $options['property']);
} else {
$entity = null;
}
/** @var AbstractNamedDBElement|null $entity */
if (null !== $entity) {
if (null !== $entity->getID()) {
return sprintf(