No need to get the class since the entity is already the class string
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
32279ed062
commit
687edb4bc8
|
@ -523,7 +523,7 @@ class Manager implements IManager, IEntityAware {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($instance->supportedEntities())
|
if (!empty($instance->supportedEntities())
|
||||||
&& !in_array(get_class($entity), $instance->supportedEntities())
|
&& !in_array($entity, $instance->supportedEntities())
|
||||||
) {
|
) {
|
||||||
throw new \UnexpectedValueException($this->l->t('Check %s is not allowed with this entity', [$class]));
|
throw new \UnexpectedValueException($this->l->t('Check %s is not allowed with this entity', [$class]));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue