Skip to content

Commit

Permalink
Fix "@require"
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos committed Feb 15, 2025
1 parent 72c2c6c commit 0f760ed
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions tests/Analyzer/Analysis/ConstructorAnalysisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function __construct(Foo $x = null, ?Bar $y = null, float $z = 3.14) {}
*
* @dataProvider provideGettingConstructorParameterNames80Cases
*
* @requires PHP 8.0
* @requires PHP >= 8.0
*/
public function testGettingConstructorParameterNames80(array $expected, string $code): void
{
Expand Down Expand Up @@ -145,7 +145,7 @@ public function __construct(int $x, int $y, int ...$z) {}
*
* @dataProvider provideGettingConstructorPromotableParameters80Cases
*
* @requires PHP 8.0
* @requires PHP >= 8.0
*/
public function testGettingConstructorPromotableParameters80(array $expected, string $code): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/CommentedOutFunctionFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public static function provideFixCases(): iterable
}

/**
* @requires PHP <8.0
* @requires PHP < 8.0
*/
public function testFixPre80(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/MultilinePromotedPropertiesFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PhpCsFixerCustomFixers\Fixer\MultilinePromotedPropertiesFixer
*
* @requires PHP 8.0
* @requires PHP >= 8.0
*/
final class MultilinePromotedPropertiesFixerTest extends AbstractFixerTestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/NoImportFromGlobalNamespaceFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ public function f2(): Vendor2\Class2 {}
}

/**
* @requires PHP 8.0
* @requires PHP >= 8.0
*/
public function testFix80(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Fixer/NoLeadingSlashInGlobalNamespaceFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static function provideFixCases(): iterable
}

/**
* @requires PHP <8.0
* @requires PHP < 8.0
*
* @dataProvider provideFixPre80Cases
*/
Expand Down Expand Up @@ -132,7 +132,7 @@ public static function provideFixPre80Cases(): iterable
}

/**
* @requires PHP 8.0
* @requires PHP >= 8.0
*/
public function testFix80(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/NoTrailingCommaInSinglelineFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public static function provideFixCases(): iterable
}

/**
* @requires PHP 8.0
* @requires PHP >= 8.0
*
* @dataProvider provideFix80Cases
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/Fixer/NoUselessParenthesisFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public function createStatic() {
}

/**
* @requires PHP <8.0
* @requires PHP < 8.0
*/
public function testFixPre80(): void
{
Expand All @@ -394,7 +394,7 @@ public function testFixPre80(): void
}

/**
* @requires PHP 8.0
* @requires PHP >= 8.0
*/
public function testFix80(): void
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Fixer/PhpdocNoIncorrectVarAnnotationFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public function f2($x) {
/**
* @dataProvider provideFix80Cases
*
* @requires PHP 8.0
* @requires PHP >= 8.0
*/
public function testFix80(string $expected, ?string $input = null): void
{
Expand Down Expand Up @@ -470,7 +470,7 @@ public function __construct(
/**
* @dataProvider provideFix81Cases
*
* @requires PHP 8.1
* @requires PHP >= 8.1
*/
public function testFix81(string $expected, ?string $input = null): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/PromotedConstructorPropertyFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PhpCsFixerCustomFixers\Fixer\PromotedConstructorPropertyFixer
*
* @requires PHP 8.0
* @requires PHP >= 8.0
*/
final class PromotedConstructorPropertyFixerTest extends AbstractFixerTestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Fixer/ReadonlyPromotedPropertiesFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* @covers \PhpCsFixerCustomFixers\Fixer\ReadonlyPromotedPropertiesFixer
*
* @requires PHP 8.1
* @requires PHP >= 8.1
*/
final class ReadonlyPromotedPropertiesFixerTest extends AbstractFixerTestCase
{
Expand Down Expand Up @@ -134,7 +134,7 @@ public function doSomething() { $this->x = 42; $this->z = 10; }
/**
* @dataProvider provideFix82Cases
*
* @requires PHP 8.2
* @requires PHP >= 8.2
*/
public function testFix82(string $expected, ?string $input = null): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixer/StringableInterfaceFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function testIsRisky(): void
/**
* @dataProvider provideFixCases
*
* @requires PHP 8.0
* @requires PHP >= 8.0
*/
public function testFix(string $expected, ?string $input = null): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/PriorityTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*
* @coversNothing
*
* @requires PHP 8.1
* @requires PHP >= 8.1
*/
final class PriorityTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Readme/ReadmeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/**
* @internal
*
* @requires PHP 8.2
* @requires PHP >= 8.2
*
* @covers \PhpCsFixerCustomFixersDev\Readme\ReadmeCommand
*/
Expand Down

0 comments on commit 0f760ed

Please sign in to comment.