-
Notifications
You must be signed in to change notification settings - Fork 1
/
.baseline-psalm.xml
144 lines (144 loc) · 5.99 KB
/
.baseline-psalm.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.23.1@8471a896ccea3526b26d082f4461eeea467f10a4">
<file src="src/Address/Bridge/Symfony/Form/DataTransformer/AddressTransformer.php">
<MissingTemplateParam>
<code><![CDATA[DataTransformerInterface]]></code>
</MissingTemplateParam>
</file>
<file src="src/Common/ComplexValueObjectInterface.php">
<MissingReturnType>
<code><![CDATA[getValueObject]]></code>
</MissingReturnType>
</file>
<file src="src/Common/ComplexValueObjectTrait.php">
<MissingPropertyType>
<code><![CDATA[$valueObject]]></code>
<code><![CDATA[$valueObject]]></code>
<code><![CDATA[$valueObject]]></code>
</MissingPropertyType>
<MissingReturnType>
<code><![CDATA[getValueObject]]></code>
</MissingReturnType>
</file>
<file src="src/Common/DisableWritingMethodsTrait.php">
<MissingParamType>
<code><![CDATA[$value]]></code>
</MissingParamType>
</file>
<file src="src/Common/ValueObjectInterface.php">
<MissingParamType>
<code><![CDATA[$value]]></code>
</MissingParamType>
</file>
<file src="src/Currency/Bridge/Doctrine/CurrencyType.php">
<DeprecatedFunction>
<code><![CDATA[sprintf('You have to pass an object of kind \Money\Currency to use the Doctrine type CurrencyType. "%s" passed instead.', $type)]]></code>
</DeprecatedFunction>
<DeprecatedMethod>
<code><![CDATA[getVarcharTypeDeclarationSQL]]></code>
<code><![CDATA[parent::requiresSQLCommentHint($platform)]]></code>
</DeprecatedMethod>
<NoValue>
<code><![CDATA[$value]]></code>
</NoValue>
</file>
<file src="src/Email/Bridge/Doctrine/EmailType.php">
<DeprecatedFunction>
<code><![CDATA[sprintf('An email field accepts only valid email addresses, as "string" or as "%s".', Email::class, $value)]]></code>
<code><![CDATA[sprintf('An email field accepts only valid email addresses. The value "%s" is not a valid email.', $value)]]></code>
</DeprecatedFunction>
<DeprecatedMethod>
<code><![CDATA[getVarcharTypeDeclarationSQL]]></code>
<code><![CDATA[parent::requiresSQLCommentHint($platform)]]></code>
</DeprecatedMethod>
</file>
<file src="src/Email/Email.php">
<DeprecatedFunction>
<code><![CDATA[sprintf('%s@%s', $this->mailBox, $this->host)]]></code>
<code><![CDATA[sprintf('The passed value "%s" does not look like an email.', $value)]]></code>
</DeprecatedFunction>
</file>
<file src="src/Money/Bridge/Doctrine/MoneyType.php">
<DeprecatedFunction>
<code><![CDATA[sprintf('You have to pass an object of kind \SerendipityHQ\Component\ValueObjects\Money\Money to use the Doctrine type MoneyType. "%s" passed instead.', $type)]]></code>
</DeprecatedFunction>
<DeprecatedMethod>
<code><![CDATA[getVarcharTypeDeclarationSQL]]></code>
<code><![CDATA[parent::requiresSQLCommentHint($platform)]]></code>
</DeprecatedMethod>
<MissingParamType>
<code><![CDATA[$value]]></code>
</MissingParamType>
<NoValue>
<code><![CDATA[$value]]></code>
</NoValue>
</file>
<file src="src/Money/Bridge/Symfony/Form/DataTransformer/MoneyTransformer.php">
<MissingTemplateParam>
<code><![CDATA[DataTransformerInterface]]></code>
</MissingTemplateParam>
</file>
<file src="src/Money/Bridge/Twig/MoneyFormatterExtension.php">
<TooManyArguments>
<code><![CDATA[new IntlMoneyFormatter($formatter, $this->currencies)]]></code>
</TooManyArguments>
</file>
<file src="src/Money/Money.php">
<ArgumentTypeCoercion>
<code><![CDATA[$other->getBaseAmount()]]></code>
<code><![CDATA[$other->getBaseAmount()]]></code>
<code><![CDATA[\strtoupper($currency)]]></code>
</ArgumentTypeCoercion>
<DeprecatedFunction>
<code><![CDATA[sprintf('The value must be numeric. You passed "%s".', $baseAmount)]]></code>
<code><![CDATA[sprintf('This is not a %s object.', BaseMoney::class)]]></code>
<code><![CDATA[sprintf('This is not a %s object.', BaseMoney::class)]]></code>
</DeprecatedFunction>
<TooManyArguments>
<code><![CDATA[new BaseMoney($other->getBaseAmount(), $other->getCurrency())]]></code>
<code><![CDATA[new BaseMoney($other->getBaseAmount(), $other->getCurrency())]]></code>
<code><![CDATA[new BaseMoney($this->baseAmount, $this->currency)]]></code>
<code><![CDATA[new DecimalMoneyFormatter($currencies)]]></code>
<code><![CDATA[new DecimalMoneyParser($currencies)]]></code>
</TooManyArguments>
</file>
<file src="src/Uri/Bridge/Doctrine/UriType.php">
<DeprecatedFunction>
<code><![CDATA[sprintf('Impossible to transform the given value of type "%s" into an UriInterface object.', $type)]]></code>
<code><![CDATA[sprintf('You have to pass an object of kind \SerendipityHQ\Component\ValueObjects\Uri\UriInterface to use the Doctrine type UriType. "%s" passed instead.', $type)]]></code>
</DeprecatedFunction>
<DeprecatedMethod>
<code><![CDATA[getVarcharTypeDeclarationSQL]]></code>
<code><![CDATA[parent::requiresSQLCommentHint($platform)]]></code>
</DeprecatedMethod>
<MissingParamType>
<code><![CDATA[$value]]></code>
</MissingParamType>
<NoValue>
<code><![CDATA[$value]]></code>
</NoValue>
</file>
<file src="src/Uri/Uri.php">
<DeprecatedFunction>
<code><![CDATA[sprintf('Expecting a string or a URI object, received "%s"', \is_object($uri) ? \get_class($uri) : \gettype($uri))]]></code>
</DeprecatedFunction>
<DocblockTypeContradiction>
<code><![CDATA[\gettype($uri)]]></code>
</DocblockTypeContradiction>
</file>
<file src="src/Vat/VatNumber.php">
<RedundantCast>
<code><![CDATA[(string) $this->number]]></code>
</RedundantCast>
</file>
<file src="tests/Email/Bridge/Doctrine/EmailTypeTest.php">
<InvalidReturnType>
<code><![CDATA[never]]></code>
</InvalidReturnType>
</file>
<file src="tests/Uri/UriTest.php">
<InvalidArgument>
<code><![CDATA[$test]]></code>
</InvalidArgument>
</file>
</files>