Skip to content

Commit

Permalink
Added return type specification for `\Psalm\Tests\CommentAnalyzerTest…
Browse files Browse the repository at this point in the history
…::providerSplitDocLine()` (#10000 (comment))
  • Loading branch information
rhertogh committed Jul 7, 2023
1 parent fc85ecb commit a69b0ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/CommentAnalyzerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ public function testSplitDocLine(string $doc_line, array $expected): void
$this->assertSame($expected, CommentAnalyzer::splitDocLine($doc_line));
}

/**
* @return iterable<array<mixed>>

Check failure on line 89 in tests/CommentAnalyzerTest.php

View workflow job for this annotation

GitHub Actions / build

MixedInferredReturnType

tests/CommentAnalyzerTest.php:89:16: MixedInferredReturnType: Providers must return iterable<array-key, array<array-key, mixed>>, possibly different iterable<mixed, array<array-key, mixed>> provided (see https://psalm.dev/047)
*/
public function providerSplitDocLine(): iterable
{
return [
Expand Down

0 comments on commit a69b0ca

Please sign in to comment.