The expression yield new Doctrine\Infle...tern('/l[ae]r$/i'), '') returns the type Generator which is incompatible with the documented return type Doctrine\Inflector\Rules\Transformation[].
Loading history...
20
19
}
21
22
/**
23
* @return Transformation[]
24
*/
25
19
public static function getPlural() : iterable
26
{
27
19
yield new Transformation(new Pattern('/([eöiü][^aoıueöiü]{0,6})$/u'), '\1ler');
The expression yield new Doctrine\Infle... returns the type Generator which is incompatible with the documented return type Doctrine\Inflector\Rules\Transformation[].
Loading history...
28
19
yield new Transformation(new Pattern('/([aoıu][^aoıueöiü]{0,6})$/u'), '\1lar');
29
19
}
30
31
/**
32
* @return Substitution[]
33
*/
34
19
public static function getIrregular() : iterable
35
{
36
19
yield new Substitution(new Word('ben'), new Word('biz'));
The expression yield new Doctrine\Infle...ctor\Rules\Word('biz')) returns the type Generator which is incompatible with the documented return type Doctrine\Inflector\Rules\Substitution[].
Loading history...
37
19
yield new Substitution(new Word('sen'), new Word('siz'));
38
19
yield new Substitution(new Word('o'), new Word('onlar'));