Skip to content

Commit a54302d

Browse files
committed
fix php7
1 parent 4512ef1 commit a54302d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎tests/Rules/PHPUnit/AssertEmptyIsDiscouragedRuleTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testFix(): void
3030
public function testNativeUnionTypeIsNotFixed(): void
3131
{
3232
if (PHP_VERSION_ID < 80000) {
33-
$this->markTestSkipped('Native union types require PHP 8.0.');
33+
self::markTestSkipped('Native union types require PHP 8.0.');
3434
}
3535

3636
$this->fix(__DIR__ . '/data/assert-empty-is-discouraged-native-union.php', __DIR__ . '/data/assert-empty-is-discouraged-native-union.php.fixed');

‎tests/Rules/PHPUnit/data/assert-empty-is-discouraged-native-union.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php declare(strict_types = 1);
1+
<?php // lint >= 8.0
22

33
namespace AssertEmptyIsDiscouragedNativeUnionTest;
44

‎tests/Rules/PHPUnit/data/assert-empty-is-discouraged-native-union.php.fixed‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php declare(strict_types = 1);
1+
<?php // lint >= 8.0
22

33
namespace AssertEmptyIsDiscouragedNativeUnionTest;
44

0 commit comments

Comments
 (0)