Skip to content

Commit 778a540

Browse files
Fixed the static test failure
1 parent de8645c commit 778a540

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

app/code/Magento/PageCache/Model/System/Config/Backend/AccessList.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2018 Adobe
4+
* All Rights Reserved.
55
*/
66

77
declare(strict_types=1);
@@ -18,6 +18,7 @@ class AccessList extends Varnish
1818
{
1919
/**
2020
* @inheritDoc
21+
* @return $this|\Magento\Framework\Model\AbstractModel
2122
*/
2223
public function beforeSave()
2324
{
@@ -30,7 +31,8 @@ public function beforeSave()
3031
if (!preg_match('/^[\w\.\-\:]+(\/(?:[0-9]|[12][0-9]|3[0-2]))?$/', trim($item))) {
3132
throw new LocalizedException(
3233
new Phrase(
33-
'Access List value "%1" is not valid because of item "%2". Please use only IP addresses and host names.',
34+
'Access List value "%1" is not valid because of item "%2".
35+
Please use only IP addresses and host names.',
3436
[$value, $item]
3537
)
3638
);

app/code/Magento/PageCache/Test/Unit/Model/System/Config/Backend/AccessListTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2018 Adobe
4+
* * All Rights Reserved.
55
*/
66

77
declare(strict_types=1);

0 commit comments

Comments
 (0)