From 28c451425e355131f8100cd1d523e28a96b860de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Bru=CC=88ckner?= Date: Wed, 3 Nov 2021 13:29:44 +0100 Subject: [PATCH] Marks PostCode::setService() and PostCode::getService() as deprecated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #6 Signed-off-by: Frank Brückner --- src/Validator/PostCode.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Validator/PostCode.php b/src/Validator/PostCode.php index b0e92d6a..9b513e5e 100644 --- a/src/Validator/PostCode.php +++ b/src/Validator/PostCode.php @@ -302,6 +302,9 @@ public function setFormat($format) /** * Returns the actual set service * + * @deprecated since 2.12.0, this method will be removed in version 3.0.0 of this component. + * Additional validations should be done via a validation chain. + * * @return mixed|null */ public function getService() @@ -312,6 +315,9 @@ public function getService() /** * Sets a new callback for service validation * + * @deprecated since 2.12.0, this method will be removed in version 3.0.0 of this component. + * Additional validations should be done via a validation chain. + * * @param mixed|null $service * @return $this */