mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Remove @psalm-generator-return
annotation
This commit is contained in:
parent
916fddb51d
commit
5717516f2f
@ -24,7 +24,7 @@ final class DocComment
|
||||
'assert', 'assert-if-true', 'assert-if-false', 'suppress',
|
||||
'ignore-nullable-return', 'override-property-visibility',
|
||||
'override-method-visibility', 'seal-properties', 'seal-methods',
|
||||
'generator-return', 'ignore-falsable-return', 'variadic', 'pure',
|
||||
'ignore-falsable-return', 'variadic', 'pure',
|
||||
'ignore-variable-method', 'ignore-variable-property', 'internal',
|
||||
'taint-sink', 'taint-source', 'assert-untainted', 'scope-this',
|
||||
'mutation-free', 'external-mutation-free', 'immutable', 'readonly',
|
||||
|
@ -76,7 +76,6 @@ class DocumentationTest extends TestCase
|
||||
'@psalm-assert-untainted',
|
||||
'@psalm-consistent-constructor',
|
||||
'@psalm-flow',
|
||||
'@psalm-generator-return',
|
||||
'@psalm-ignore-variable-method',
|
||||
'@psalm-ignore-variable-property',
|
||||
'@psalm-override-method-visibility',
|
||||
|
@ -53,20 +53,6 @@ class GeneratorTest extends TestCase
|
||||
'$g' => 'Generator<int, stdClass, mixed, mixed>',
|
||||
],
|
||||
],
|
||||
'generatorWithReturn' => [
|
||||
'code' => '<?php
|
||||
/**
|
||||
* @return Generator<int,int>
|
||||
* @psalm-generator-return string
|
||||
*/
|
||||
function fooFoo(int $i): Generator {
|
||||
if ($i === 1) {
|
||||
return "bash";
|
||||
}
|
||||
|
||||
yield 1;
|
||||
}',
|
||||
],
|
||||
'generatorSend' => [
|
||||
'code' => '<?php
|
||||
/** @return Generator<int, string, DateTimeInterface, void> */
|
||||
|
Loading…
Reference in New Issue
Block a user