From 5a371de787642b8439257b1a1d8bbdeb6dcc24bd Mon Sep 17 00:00:00 2001 From: Dominic Tubach Date: Tue, 8 Aug 2023 11:03:06 +0200 Subject: [PATCH] RemoteEntityProfilePass: Fix error messages --- .../DependencyInjection/Compiler/RemoteEntityProfilePass.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Civi/RemoteTools/DependencyInjection/Compiler/RemoteEntityProfilePass.php b/Civi/RemoteTools/DependencyInjection/Compiler/RemoteEntityProfilePass.php index ca5d155..0017a12 100644 --- a/Civi/RemoteTools/DependencyInjection/Compiler/RemoteEntityProfilePass.php +++ b/Civi/RemoteTools/DependencyInjection/Compiler/RemoteEntityProfilePass.php @@ -89,7 +89,7 @@ private function getAttributeOrConst( Assert::string($attributes[$key], sprintf( 'Attribute "%s" in tag "%s" of service "%s" expected to be string, got %s', $key, - ActionHandlerInterface::SERVICE_TAG, + RemoteEntityProfileInterface::SERVICE_TAG, $id, gettype($attributes[$key]) )); @@ -110,7 +110,7 @@ private function getAttributeOrConst( throw new \RuntimeException(sprintf( 'Neither attribute "%s" in tag "%s" of service "%s" nor constant "%s" exists', $key, - ActionHandlerInterface::SERVICE_TAG, + RemoteEntityProfileInterface::SERVICE_TAG, $id, $constantName ));