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
1 changed files with 1 additions and 1 deletions
|
@ -523,7 +523,7 @@ class Manager implements IManager, IEntityAware {
|
|||
}
|
||||
|
||||
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]));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue