Skip to content

Commit 4f7eb27

Browse files
committed
Everything should be compatible with PHP 8 lint
1 parent 4cd09a1 commit 4f7eb27

23 files changed

+23
-32
lines changed

tests/Helpers/data/lotsOfReferencedNames.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class FooClass extends \ExtendedClass implements \ImplementedInterface, \SecondImplementedInterface, \ThirdImplementedInterface
1313
{
1414

15-
use \FullyQualified\SomeOtherTrait, SomeDifferentTrait, \FullyQualified \ SometTotallyDifferentTrait;
15+
use \FullyQualified\SomeOtherTrait, SomeDifferentTrait, \FullyQualified\SometTotallyDifferentTrait;
1616
use SomeTrait;
1717

1818
/** @ORM\Column(name="foo") */

tests/Sniffs/Classes/ParentCallSpacingSniffTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ public function testErrors(): void
1919

2020
self::assertSame(2, $report->getErrorCount());
2121

22-
self::assertSniffError($report, 5, ParentCallSpacingSniff::CODE_INCORRECT_LINES_COUNT_AFTER_CONTROL_STRUCTURE, 'Expected 1 lines after "parent", found 0.');
23-
self::assertSniffError($report, 11, ParentCallSpacingSniff::CODE_INCORRECT_LINES_COUNT_BEFORE_CONTROL_STRUCTURE, 'Expected 1 lines before "parent", found 0.');
22+
self::assertSniffError($report, 6, ParentCallSpacingSniff::CODE_INCORRECT_LINES_COUNT_AFTER_CONTROL_STRUCTURE, 'Expected 1 lines after "parent", found 0.');
23+
self::assertSniffError($report, 12, ParentCallSpacingSniff::CODE_INCORRECT_LINES_COUNT_BEFORE_CONTROL_STRUCTURE, 'Expected 1 lines before "parent", found 0.');
2424

2525
self::assertAllFixedInFile($report);
2626
}

tests/Sniffs/Classes/data/parentCallSpacingErrors.fixed.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

3-
class X {
3+
class X extends Whatever
4+
{
45
function a() {
56
parent::a();
67

tests/Sniffs/Classes/data/parentCallSpacingErrors.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

3-
class X {
3+
class X extends Whatever
4+
{
45
function a() {
56
parent::a();
67
echo 'wow';

tests/Sniffs/Classes/data/parentCallSpacingNoErrors.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

3-
class X {
3+
class X extends Whatever
4+
{
45
function a() {
56
parent::a();
67

tests/Sniffs/Commenting/data/forbiddenComments.fixed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
class Foo
3+
class Foo extends Whatever
44
{
55

66
public function __construct()

tests/Sniffs/Commenting/data/forbiddenComments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* Created by PhpStorm.
55
*/
6-
class Foo
6+
class Foo extends Whatever
77
{
88

99
/**

tests/Sniffs/Operators/NegationOperatorSpacingSniffTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function testErrors(): void
1616
{
1717
$report = self::checkFile(__DIR__ . '/data/negationOperatorSpacingErrors.php');
1818

19-
self::assertSame(97, $report->getErrorCount());
19+
self::assertSame(95, $report->getErrorCount());
2020

2121
self::assertAllFixedInFile($report);
2222
}
@@ -35,7 +35,7 @@ public function testRequireSpaceErrors(): void
3535
['spacesCount' => 1]
3636
);
3737

38-
self::assertSame(97, $report->getErrorCount());
38+
self::assertSame(95, $report->getErrorCount());
3939

4040
self::assertAllFixedInFile($report);
4141
}

tests/Sniffs/Operators/data/negationOperatorSpacingErrors.fixed.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ function(){yield -1;};
5050
$a = (array) -1;
5151
$a = (bool) -1;
5252
$a = (object) -1;
53-
$a = (unset) -1;
5453
$a = (float) -1;
5554
$a = (int) -1;
5655
$a ^= -1;
@@ -99,7 +98,6 @@ function(){yield -$b;};
9998
$a = (array) -$b;
10099
$a = (bool) -$b;
101100
$a = (object) -$b;
102-
$a = (unset) -$b;
103101
$a = (float) -$b;
104102
$a = (int) -$b;
105103
$a ^= -$b;

tests/Sniffs/Operators/data/negationOperatorSpacingErrors.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ function(){yield - 1;};
5050
$a = (array) - 1;
5151
$a = (bool) - 1;
5252
$a = (object) - 1;
53-
$a = (unset) - 1;
5453
$a = (float) - 1;
5554
$a = (int) - 1;
5655
$a ^= - 1;
@@ -99,7 +98,6 @@ function(){yield - $b;};
9998
$a = (array) - $b;
10099
$a = (bool) - $b;
101100
$a = (object) - $b;
102-
$a = (unset) - $b;
103101
$a = (float) - $b;
104102
$a = (int) - $b;
105103
$a ^= - $b;

0 commit comments

Comments
 (0)