Skip to content

Commit

Permalink
Marks PostCode::setService() and PostCode::getService() as deprecated
Browse files Browse the repository at this point in the history
Fixes #6

Signed-off-by: Frank Brückner <dev@froschdesignstudio.de>
  • Loading branch information
froschdesign committed Nov 3, 2021
1 parent fea1847 commit 28c4514
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Validator/PostCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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
*/
Expand Down

0 comments on commit 28c4514

Please sign in to comment.