Skip to content
Snippets Groups Projects
Unverified Commit 687edb4b authored by Julius Härtl's avatar Julius Härtl Committed by Arthur Schiwon
Browse files

No need to get the class since the entity is already the class string


Signed-off-by: default avatarJulius Härtl <jus@bitgrid.net>
parent 32279ed0
No related branches found
No related tags found
No related merge requests found
...@@ -523,7 +523,7 @@ class Manager implements IManager, IEntityAware { ...@@ -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]));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment