Skip to content

Commit a6d2530

Browse files
committed
AC-662: Create phpcs static check for AutogeneratedClassNotInConstructorTest
1 parent 80e07de commit a6d2530

4 files changed

+9
-5
lines changed

Magento2/Sniffs/PHP/AutogeneratedClassNotInConstructorSniff.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22
/**
3-
* Copyright © Magento. All rights reserved.
3+
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types = 1);
67

78
namespace Magento2\Sniffs\PHP;
89

Magento2/Tests/PHP/AutogeneratedClassNotInConstructorUnitTest.1.php.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22
/**
3-
* Copyright © Magento. All rights reserved.
3+
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types = 1);
67

78
namespace Magento2\Tests\PHP;
89

Magento2/Tests/PHP/AutogeneratedClassNotInConstructorUnitTest.2.php.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22
/**
3-
* Copyright © Magento. All rights reserved.
3+
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types = 1);
67

78
namespace Magento2\Tests\PHP;
89

Magento2/Tests/PHP/AutogeneratedClassNotInConstructorUnitTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?php
22
/**
3-
* Copyright © Magento. All rights reserved.
3+
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types = 1);
67

78
namespace Magento2\Tests\PHP;
89

@@ -17,7 +18,7 @@ public function getErrorList($filename = '')
1718
{
1819
if ($filename === 'AutogeneratedClassNotInConstructorUnitTest.2.php.inc') {
1920
return [
20-
13 => 1
21+
14 => 1
2122
];
2223
}
2324
return [];

0 commit comments

Comments
 (0)