From ffecb61d9c638f56c5146d6d3fbf21f7c4342156 Mon Sep 17 00:00:00 2001 From: Kevin Kopf Date: Sun, 5 Jan 2025 10:06:22 +0100 Subject: [PATCH] Upgrade the Response warning message to include the debug location. --- src/Annotations/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Annotations/Response.php b/src/Annotations/Response.php index 47f8d52bb..24d1024e4 100644 --- a/src/Annotations/Response.php +++ b/src/Annotations/Response.php @@ -121,7 +121,7 @@ public function validate(array $stack = [], array $skip = [], string $ref = '', $valid = parent::validate($stack, $skip, $ref, $context); if (Generator::isDefault($this->description) && Generator::isDefault($this->ref)) { - $this->_context->logger->warning($this->identity() . ' One of description or ref is required for ' . $this->_context->namespace . '\\' . $this->_context->class . '::' . $this->_context->method); + $this->_context->logger->warning($this->identity() . ' One of description or ref is required for ' . $this->_context->getDebugLocation()); $valid = false; }