forked from FakerPHP/Faker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
psalm.baseline.xml
106 lines (105 loc) · 3.26 KB
/
psalm.baseline.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.15.0@5c774aca4746caf3d239d9c8cadb9f882ca29352">
<file src="src/Generator.php">
<InvalidReturnStatement>
<code>new ChanceGenerator($this, $weight, $default)</code>
<code>new ValidGenerator($this, $validator, $maxRetries)</code>
</InvalidReturnStatement>
<InvalidReturnType>
<code>self</code>
<code>self</code>
</InvalidReturnType>
</file>
<file src="src/Provider/Base.php">
<InvalidArgument>
<code>[static::class, 'randomDigit']</code>
<code>static function ($matches) {
// remove backslashes (that are not followed by another backslash) because they are escape characters
$match = preg_replace('/\\\(?!\\\)/', '', $matches[1]);
$randomElement = Base::randomElement(str_split($match));
//[.] should not be a random character, but a literal .
return str_replace('.', '\.', $randomElement);
}</code>
</InvalidArgument>
<UndefinedClass>
<code>\UnitEnum</code>
<code>\UnitEnum</code>
</UndefinedClass>
<UndefinedDocblockClass>
<code>Closure</code>
</UndefinedDocblockClass>
<UndefinedFunction>
<code>enum_exists($array)</code>
<code>enum_exists($array)</code>
</UndefinedFunction>
</file>
<file src="src/Provider/Biased.php">
<InvalidParamDefault>
<code>callable</code>
</InvalidParamDefault>
</file>
<file src="src/Provider/File.php">
<FalsableReturnStatement>
<code>false</code>
</FalsableReturnStatement>
</file>
<file src="src/Provider/PhoneNumber.php">
<InvalidReturnStatement>
<code>$imei</code>
</InvalidReturnStatement>
<InvalidReturnType>
<code>int</code>
</InvalidReturnType>
</file>
<file src="src/Provider/ar_SA/Address.php">
<UndefinedPropertyFetch>
<code>static::$cityPrefix</code>
</UndefinedPropertyFetch>
</file>
<file src="src/Provider/cs_CZ/Person.php">
<NonStaticSelfCall>
<code>static::birthNumber(static::GENDER_FEMALE)</code>
<code>static::birthNumber(static::GENDER_MALE)</code>
</NonStaticSelfCall>
</file>
<file src="src/Provider/en_SG/Person.php">
<InvalidArrayOffset>
<code>$weights[$i]</code>
</InvalidArrayOffset>
</file>
<file src="src/Provider/is_IS/Person.php">
<InvalidArrayOffset>
<code>$ref[$i]</code>
</InvalidArrayOffset>
</file>
<file src="src/Provider/ja_JP/Text.php">
<UndefinedMethod>
<code>static::split($text)</code>
</UndefinedMethod>
</file>
<file src="src/Provider/pl_PL/Company.php">
<InvalidArrayOffset>
<code>$weights[$i]</code>
<code>$weights[$i]</code>
</InvalidArrayOffset>
</file>
<file src="src/Provider/pl_PL/Person.php">
<InvalidArrayOffset>
<code>$high[$i]</code>
<code>$low[$i]</code>
<code>$result[$i]</code>
<code>$weights[$i + 3]</code>
<code>$weights[$i]</code>
<code>$weights[$i]</code>
</InvalidArrayOffset>
<UndefinedDocblockClass>
<code>DateTime</code>
</UndefinedDocblockClass>
</file>
<file src="src/Provider/sl_SI/Person.php">
<NonStaticSelfCall>
<code>static::lastName()</code>
<code>static::lastName()</code>
</NonStaticSelfCall>
</file>
</files>