Skip to content

Commit

Permalink
add failing iterator fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jul 24, 2024
1 parent 8a14f92 commit f0972c7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

function test($value): string
{
/* @var $value Iterator<SomeType> */
return $value;
}

?>
-----
<?php

function test($value): string
{
/** @var Iterator<SomeType> $value */
return $value;
}

?>
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
use PHPUnit\Framework\Attributes\DataProvider;
use Symplify\EasyCodingStandard\Testing\PHPUnit\AbstractCheckerTestCase;

/**
* @mimic https://github.com/rectorphp/rector/pull/807/files
*/
final class ParamReturnAndVarTagMalformsFixerTest extends AbstractCheckerTestCase
{
#[DataProvider('provideData')]
Expand Down

0 comments on commit f0972c7

Please sign in to comment.