File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
app/code/Magento/Customer
Test/Unit/Model/Metadata/Form Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,6 @@ class Postcode extends Text
22
22
*/
23
23
protected DirectoryHelper $ directoryHelper ;
24
24
25
- /**
26
- * @var StringUtils
27
- */
28
- protected $ _string ;
29
-
30
25
/**
31
26
* @param MagentoTimezone $localeDate
32
27
* @param PsrLogger $logger
@@ -50,10 +45,7 @@ public function __construct(
50
45
StringUtils $ stringHelper = null
51
46
) {
52
47
$ this ->directoryHelper = $ directoryHelper ;
53
- if ($ stringHelper === null ) {
54
- $ stringHelper = \Magento \Framework \App \ObjectManager::getInstance ()->get (StringUtils::class);
55
- }
56
- $ this ->_string = $ stringHelper ;
48
+ $ stringHelper = $ stringHelper ?? \Magento \Framework \App \ObjectManager::getInstance ()->get (StringUtils::class);
57
49
parent ::__construct (
58
50
$ localeDate ,
59
51
$ logger ,
Original file line number Diff line number Diff line change 17
17
class PostcodeTest extends AbstractFormTestCase
18
18
{
19
19
/** @var StringUtils */
20
- protected StringUtils $ stringHelper ;
20
+ private StringUtils $ stringHelper ;
21
21
22
22
/**
23
23
* @var DirectoryHelper|MockObject
You can’t perform that action at this time.
0 commit comments