Skip to content

Commit

Permalink
Merge pull request #65 from froschdesign/hotfix/deprecation-postcode-…
Browse files Browse the repository at this point in the history
…service

Marks PostCode::setService() and PostCode::getService() as deprecated
  • Loading branch information
froschdesign authored Nov 26, 2021
2 parents 8c46998 + 28c4514 commit 78234f2
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 78234f2

Please sign in to comment.