Skip to content

Commit

Permalink
Merge pull request #9114 from kenjis/docs-replace-failValidationError
Browse files Browse the repository at this point in the history
docs: replace deprecated failValidationError()
  • Loading branch information
kenjis committed Aug 11, 2024
2 parents a5c7f77 + cb152ad commit c1aad11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion user_guide_src/source/changelogs/v4.1.2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Deprecations
- Consolidated and deprecated ``ControllerResponse`` and ``FeatureResponse`` in favor of ``TestResponse``.
- Deprecated ``Time::instance()``, use ``Time::createFromInstance()`` instead (now accepts ``DateTimeInterface``).
- Deprecated ``IncomingRequest::removeRelativeDirectory()``, use ``URI::removeDotSegments()`` instead
- Deprecated ``\API\ResponseTrait::failValidationError`` to use ``\API\ResponseTrait::failValidationErrors`` instead
- Deprecated ``\API\ResponseTrait::failValidationError()`` to use ``\API\ResponseTrait::failValidationErrors()`` instead

Bugs Fixed
----------
Expand Down
4 changes: 2 additions & 2 deletions user_guide_src/source/outgoing/api_responses/002.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
// Resource Not Found
$this->failNotFound($description);

// Data did not validate
$this->failValidationError($description);
// Data was not validated
$this->failValidationErrors($errors);

// Resource already exists
$this->failResourceExists($description);
Expand Down

0 comments on commit c1aad11

Please sign in to comment.