Skip to content

Commit

Permalink
Change PHP file to prove Mess Detector works again
Browse files Browse the repository at this point in the history
  • Loading branch information
Wirone committed Apr 30, 2024
1 parent 979343b commit b2a770c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion phpstan.dist.neon
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ parameters:
-
message: '#^Method PhpCsFixer\\Tests\\.+::provide.+Cases\(\) return type has no value type specified in iterable type iterable\.$#'
path: tests
count: 1017
count: 1014
tipsOfTheDay: false
tmpDir: dev-tools/phpstan/cache
9 changes: 9 additions & 0 deletions tests/Fixer/ClassNotation/FinalClassFixerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public function testFix(string $expected, ?string $input = null): void
$this->doTest($expected, $input);
}

/**
* @return iterable<array{0: string, 1?: string}>
*/
public static function provideFixCases(): iterable
{
yield ['<?php /** @Entity */ class MyEntity {}'];
Expand Down Expand Up @@ -104,6 +107,9 @@ public function testFix80(string $expected, ?string $input = null): void
$this->doTest($expected, $input);
}

/**
* @return iterable<array{0: string, 1?: string}>
*/
public static function provideFix80Cases(): iterable
{
yield ['<?php #[Entity] class MyEntity {}'];
Expand Down Expand Up @@ -207,6 +213,9 @@ public function testFix82(string $expected, ?string $input = null): void
$this->doTest($expected, $input);
}

/**
* @return iterable<array{0: string, 1?: string}>
*/
public static function provideFix82Cases(): iterable
{
yield ['<?php #[Entity] readonly class MyEntity {}'];
Expand Down

0 comments on commit b2a770c

Please sign in to comment.