From 97b1e6570224c4531537cb6ce9e6cb8d58705cdd Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 13 Apr 2023 16:50:05 +0900 Subject: [PATCH 1/2] feat: add missing ValidationInterface::getValidated() --- system/Validation/Validation.php | 2 +- system/Validation/ValidationInterface.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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; } From fd5b43005556d9cce88245ba383daf602e020c7f Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 13 Apr 2023 17:07:08 +0900 Subject: [PATCH 2/2] docs: add changelog and upgrade --- user_guide_src/source/changelogs/v4.4.0.rst | 4 ++++ user_guide_src/source/installation/upgrade_440.rst | 6 ++++++ 2 files changed, 10 insertions(+) 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 **********************