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:
Julius Härtl 2019-09-06 14:08:01 +02:00 committed by Arthur Schiwon
parent 32279ed062
commit 687edb4bc8
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 1 additions and 1 deletions

View File

@ -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]));
}