Skip to content

Commit

Permalink
Upgrade the Response warning message to include the debug location.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Kopf committed Jan 5, 2025
1 parent 63421b8 commit ffecb61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Annotations/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ffecb61

Please sign in to comment.