File tree 4 files changed +8
-13
lines changed
4 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [ Unreleased]
8
8
9
+ ## [ 5.1.1] - 2021-07-13
10
+ ### Changed
11
+ - Removal of phone number filtering in PhoneNumber value object.
12
+
9
13
## [ 5.1.0] - 2021-06-01
10
14
### Changed
11
15
- Deprecation of duplicate method TransactionResponse->getPaymentLink().
Original file line number Diff line number Diff line change 3
3
"description" : " MultiSafepay PHP SDK" ,
4
4
"type" : " library" ,
5
5
"license" : " MIT" ,
6
- "version" : " 5.1.0 " ,
6
+ "version" : " 5.1.1 " ,
7
7
"require" : {
8
8
"php" : " ^7.2|^8.0" ,
9
9
"ext-json" : " *" ,
Original file line number Diff line number Diff line change 17
17
*/
18
18
class Version
19
19
{
20
- const SDK_VERSION = '5.1.0 ' ;
20
+ const SDK_VERSION = '5.1.1 ' ;
21
21
22
22
/**
23
23
* @var Version
Original file line number Diff line number Diff line change @@ -15,15 +15,15 @@ class PhoneNumber
15
15
/**
16
16
* @var string
17
17
*/
18
- private $ phoneNumber = '' ;
18
+ private $ phoneNumber ;
19
19
20
20
/**
21
21
* Country constructor.
22
22
* @param string $phoneNumber
23
23
*/
24
24
public function __construct (string $ phoneNumber )
25
25
{
26
- $ this ->phoneNumber = $ this -> filter ( $ phoneNumber) ;
26
+ $ this ->phoneNumber = $ phoneNumber ;
27
27
}
28
28
29
29
/**
@@ -33,13 +33,4 @@ public function get(): string
33
33
{
34
34
return $ this ->phoneNumber ;
35
35
}
36
-
37
- /**
38
- * @param string $phoneNumber
39
- * @return string
40
- */
41
- private function filter (string $ phoneNumber ): string
42
- {
43
- return preg_replace ('/([^0-9]+)/ ' , '' , $ phoneNumber );
44
- }
45
36
}
You can’t perform that action at this time.
0 commit comments