From 687edb4bc80cc5cda3663997d23a319d7ea15925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 6 Sep 2019 14:08:01 +0200 Subject: [PATCH] No need to get the class since the entity is already the class string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/workflowengine/lib/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/workflowengine/lib/Manager.php b/apps/workflowengine/lib/Manager.php index a0dda9cb6b..2e78b75aeb 100644 --- a/apps/workflowengine/lib/Manager.php +++ b/apps/workflowengine/lib/Manager.php @@ -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])); }