diff --git a/src/Controller/ProfilerController.php b/src/Controller/ProfilerController.php index 86df739..7a4d1dd 100644 --- a/src/Controller/ProfilerController.php +++ b/src/Controller/ProfilerController.php @@ -179,6 +179,11 @@ protected function getMessage(Request $request, $token) $profile = $profiler->loadProfile($token); $messages = $profile->getCollector('translation')->getMessages(); + + if ($messages instanceof Data) { + $messages = $messages->getValue(true); + } + if (!isset($messages[$messageId])) { throw $this->createNotFoundException(sprintf('No message with key "%s" was found.', $messageId)); }