diff --git a/system/Validation/Validation.php b/system/Validation/Validation.php index 71be2b698a55..8afc6f5ba819 100644 --- a/system/Validation/Validation.php +++ b/system/Validation/Validation.php @@ -212,7 +212,7 @@ public function check($value, $rule, array $errors = []): bool } /** - * Returns actually validated data. + * Returns the actual validated data. */ public function getValidated(): array { diff --git a/system/Validation/ValidationInterface.php b/system/Validation/ValidationInterface.php index 8c018b9a0dc2..2c30d645ee8a 100644 --- a/system/Validation/ValidationInterface.php +++ b/system/Validation/ValidationInterface.php @@ -148,4 +148,9 @@ public function listErrors(string $template = 'list'): string; * Displays a single error in formatted HTML as defined in the $template view. */ public function showError(string $field, string $template = 'single'): string; + + /** + * Returns the actual validated data. + */ + public function getValidated(): array; } diff --git a/user_guide_src/source/changelogs/v4.4.0.rst b/user_guide_src/source/changelogs/v4.4.0.rst index df5b2c6da321..490c581c4900 100644 --- a/user_guide_src/source/changelogs/v4.4.0.rst +++ b/user_guide_src/source/changelogs/v4.4.0.rst @@ -29,6 +29,8 @@ or more was specified. See :ref:`upgrade-440-uri-setsegment`. The next segment (``+1``) of the current last segment can be set as before. +.. _v440-interface-changes: + Interface Changes ================= @@ -36,6 +38,8 @@ Interface Changes or implemented these interfaces, all these changes are backward compatible and require no intervention. +- **Validation:** Added the ``getValidated()`` method in ``ValidationInterface``. + Method Signature Changes ======================== diff --git a/user_guide_src/source/installation/upgrade_440.rst b/user_guide_src/source/installation/upgrade_440.rst index 4d12d963b132..5e7ab6856ce9 100644 --- a/user_guide_src/source/installation/upgrade_440.rst +++ b/user_guide_src/source/installation/upgrade_440.rst @@ -60,6 +60,12 @@ by defining your own exception handler. See :ref:`custom-exception-handlers` for the detail. +Interface Changes +================= + +Some interface changes have been made. Classes that implement them should update +their APIs to reflect the changes. See :ref:`v440-interface-changes` for details. + Mandatory File Changes **********************