forked from shopware/SwagPayPal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpsalm.xml
110 lines (98 loc) · 4.58 KB
/
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
<?xml version="1.0"?>
<psalm
autoloader="bin/static-analyze-autoloader.php"
findUnusedVariablesAndParams="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src"/>
<directory name="tests"/>
<ignoreFiles>
<directory name="../../../platform"/> <!-- would otherwise inspect Shopware -->
<directory name="../../../vendor"/> <!-- would otherwise inspect vendor -->
</ignoreFiles>
</projectFiles>
<issueHandlers>
<LessSpecificImplementedReturnType>
<!-- <deprecated> tag:v2.0.0 - Remove once the Token class is final -->
<errorLevel type="info">
<file name="src/PayPal/Api/Token.php"/>
</errorLevel>
</LessSpecificImplementedReturnType>
<DeprecatedClass>
<!-- <deprecated> tag:v2.0.0 - Remove once the Token class is final -->
<errorLevel type="info">
<referencedClass name="Swag\PayPal\PayPal\Api\Token"/>
</errorLevel>
</DeprecatedClass>
<InvalidReturnType>
<errorLevel type="info">
<directory name="tests/Mock"/>
</errorLevel>
</InvalidReturnType>
<DocblockTypeContradiction>
<errorLevel type="info">
<file name="src/PayPal/Api/Common/PayPalStruct.php"/>
</errorLevel>
</DocblockTypeContradiction>
<InternalMethod>
<errorLevel type="info">
<directory name="tests"/>
</errorLevel>
</InternalMethod>
<DeprecatedInterface>
<errorLevel type="info">
<!-- TODO - Remove with Shopware 6.3 compatibility -->
<referencedClass name="Shopware\Core\System\Snippet\Files\SnippetFileInterface"/>
</errorLevel>
</DeprecatedInterface>
<DeprecatedTrait>
<errorLevel type="info">
<directory name="tests"/>
</errorLevel>
</DeprecatedTrait>
<DeprecatedMethod>
<errorLevel type="info">
<referencedMethod name="Shopware\Core\Framework\Test\TestCaseBase\AssertArraySubsetBehaviour::silentAssertArraySubset"/>
<!-- <deprecated> tag:v2.0.0 - Remove with 2.0.0 -->
<referencedMethod name="Swag\PayPal\Checkout\SPBCheckout\SPBMarksData::isUseAlternativePaymentMethods"/>
<!-- <deprecated> tag:v2.0.0 - Remove with 2.0.0 -->
<referencedMethod name="Swag\PayPal\Checkout\ExpressCheckout\ExpressCheckoutButtonData::getAddLineItemUrl"/>
<!-- <deprecated> tag:v2.0.0 - Remove with 2.0.0 -->
<referencedMethod name="Swag\PayPal\Checkout\SPBCheckout\SPBCheckoutButtonData::getErrorParameter"/>
</errorLevel>
</DeprecatedMethod>
<DeprecatedConstant>
<errorLevel type="info">
<!-- <deprecated> tag:v2.0.0 - Remove with 2.0.0 -->
<file name="src/Checkout/SPBCheckout/SPBCheckoutButtonData.php"/>
<!-- <deprecated> tag:v2.0.0 - Remove with 2.0.0 -->
<file name="tests/Checkout/SPBCheckout/SPBCheckoutSubscriberTest.php"/>
</errorLevel>
</DeprecatedConstant>
<DeprecatedProperty>
<errorLevel type="info">
<!-- <deprecated> tag:v2.0.0 - Remove with 2.0.0 -->
<referencedProperty name="Swag\PayPal\Checkout\Plus\PlusPaymentFinalizeController::$logger"/>
<!-- <deprecated> tag:v2.0.0 - Remove with 2.0.0 -->
<referencedProperty name="Swag\PayPal\Checkout\ExpressCheckout\ExpressCheckoutController::$logger"/>
</errorLevel>
</DeprecatedProperty>
<UnresolvableInclude>
<errorLevel type="info">
<file name="tests/TestBootstrap.php"/>
</errorLevel>
</UnresolvableInclude>
<PossiblyNullReference>
<errorLevel type="info">
<!-- Psalm does not recognize the markTestSkipped method call as terminating -->
<file name="tests/Checkout/ExpressCheckout/ExpressCheckoutSubscriberTest.php"/>
</errorLevel>
</PossiblyNullReference>
<!-- level 3 issues - slightly lazy code writing, but provably low false-negatives -->
<PropertyNotSetInConstructor errorLevel="info"/>
<MissingConstructor errorLevel="info"/>
</issueHandlers>
</psalm>