The expression yield new Doctrine\Infle...Pattern('/re$/i'), 'r') returns the type Generator which is incompatible with the documented return type Doctrine\Inflector\Rules\Transformation[].
Loading history...
20
23
yield new Transformation(new Pattern('/er$/i'), '');
21
23
}
22
23
/**
24
* @return Transformation[]
25
*/
26
23
public static function getPlural() : iterable
27
{
28
23
yield new Transformation(new Pattern('/e$/i'), 'er');
The expression yield new Doctrine\Infle...Pattern('/e$/i'), 'er') returns the type Generator which is incompatible with the documented return type Doctrine\Inflector\Rules\Transformation[].
Loading history...
29
23
yield new Transformation(new Pattern('/r$/i'), 're');
30
23
yield new Transformation(new Pattern('/$/'), 'er');
31
23
}
32
33
/**
34
* @return Substitution[]
35
*/
36
23
public static function getIrregular() : iterable
37
{
38
23
yield new Substitution(new Word('konto'), new Word('konti'));
The expression yield new Doctrine\Infle...or\Rules\Word('konti')) returns the type Generator which is incompatible with the documented return type Doctrine\Inflector\Rules\Substitution[].