generated from wayofdev/laravel-package-tpl
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpsalm-baseline.xml
167 lines (167 loc) · 7.15 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
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="5.24.0@462c80e31c34e58cc4f750c656be3927e80e550e">
<file src="src/Bridge/Laravel/Http/ResponseFactory.php">
<PossiblyUnusedMethod>
<code><![CDATA[empty]]></code>
</PossiblyUnusedMethod>
</file>
<file src="src/Bridge/Laravel/Providers/SerializerServiceProvider.php">
<MixedArgumentTypeCoercion>
<code><![CDATA[[
'default' => $config->get('serializer.default'),
'debug' => $config->get('serializer.debug'),
'normalizerRegistrationStrategy' => $config->get('serializer.normalizerRegistrationStrategy'),
'encoderRegistrationStrategy' => $config->get('serializer.encoderRegistrationStrategy'),
'metadataLoader' => $config->get('serializer.metadataLoader'),
]]]></code>
</MixedArgumentTypeCoercion>
<MixedInferredReturnType>
<code><![CDATA[EncoderRegistrationStrategy]]></code>
<code><![CDATA[NormalizerRegistrationStrategy]]></code>
</MixedInferredReturnType>
<MixedReturnStatement>
<code><![CDATA[$app->make($strategyFQCN)]]></code>
<code><![CDATA[$app->make($strategyFQCN, [
'loader' => $loader,
'debugMode' => $config->debug(),
])]]></code>
</MixedReturnStatement>
<PossiblyUnusedMethod>
<code><![CDATA[boot]]></code>
</PossiblyUnusedMethod>
</file>
<file src="src/DefaultNormalizerRegistrationStrategy.php">
<PossiblyUnusedMethod>
<code><![CDATA[__construct]]></code>
</PossiblyUnusedMethod>
</file>
<file src="src/Manager/Serializer.php">
<PossiblyNullArgument>
<code><![CDATA[is_object($type) ? $type::class : $type]]></code>
</PossiblyNullArgument>
</file>
<file src="src/Normalizers/RamseyUuidNormalizer.php">
<MixedArgument>
<code><![CDATA[$data]]></code>
</MixedArgument>
</file>
<file src="tests/src/Functional/Bridge/Laravel/Facades/ManagerTest.php">
<PossiblyUnusedMethod>
<code><![CDATA[it_gets_manager_from_facade]]></code>
</PossiblyUnusedMethod>
</file>
<file src="tests/src/Functional/Bridge/Laravel/Facades/SerializerTest.php">
<PossiblyUnusedMethod>
<code><![CDATA[it_gets_symfony_serializer_from_facade]]></code>
</PossiblyUnusedMethod>
</file>
<file src="tests/src/Functional/Bridge/Laravel/Http/ResponseFactoryTest.php">
<PossiblyUnusedMethod>
<code><![CDATA[it_creates_from_array_iterator]]></code>
<code><![CDATA[it_creates_response]]></code>
<code><![CDATA[it_creates_response_from_array]]></code>
<code><![CDATA[it_sets_non_default_status_code]]></code>
<code><![CDATA[it_uses_given_context]]></code>
</PossiblyUnusedMethod>
</file>
<file src="tests/src/Functional/Bridge/Laravel/Providers/SerializerServiceProviderTest.php">
<MixedArgument>
<code><![CDATA[$encoders]]></code>
</MixedArgument>
<MixedAssignment>
<code><![CDATA[$encodersRegistry]]></code>
<code><![CDATA[$normalizersRegistry]]></code>
</MixedAssignment>
<MixedMethodCall>
<code><![CDATA[all]]></code>
<code><![CDATA[all]]></code>
</MixedMethodCall>
<PossiblyUnusedMethod>
<code><![CDATA[it_registers_config]]></code>
<code><![CDATA[it_registers_encoders_registry]]></code>
<code><![CDATA[it_registers_loader]]></code>
<code><![CDATA[it_registers_normalizers_registry]]></code>
<code><![CDATA[it_registers_symfony_serializer_interface]]></code>
</PossiblyUnusedMethod>
</file>
<file src="tests/src/Functional/ConfigTest.php">
<InvalidArgument>
<code><![CDATA[$configArray]]></code>
</InvalidArgument>
<PossiblyUnusedMethod>
<code><![CDATA[it_creates_config_from_array]]></code>
<code><![CDATA[it_creates_config_with_default_metadata_loader]]></code>
<code><![CDATA[it_fails_to_create_config_due_to_missing_attributes]]></code>
</PossiblyUnusedMethod>
</file>
<file src="tests/src/Functional/EncoderRegistryTest.php">
<MixedArgument>
<code><![CDATA[$this->app?->make(EncoderRegistrationStrategy::class)]]></code>
<code><![CDATA[$this->app?->make(EncoderRegistrationStrategy::class)]]></code>
</MixedArgument>
<PossiblyNullArgument>
<code><![CDATA[$this->app?->make(EncoderRegistrationStrategy::class)]]></code>
<code><![CDATA[$this->app?->make(EncoderRegistrationStrategy::class)]]></code>
</PossiblyNullArgument>
<PossiblyUnusedMethod>
<code><![CDATA[it_creates_registry_with_default_encoders]]></code>
<code><![CDATA[it_creates_registry_with_user_defined_encoders]]></code>
<code><![CDATA[it_registers_additional_encoders]]></code>
</PossiblyUnusedMethod>
</file>
<file src="tests/src/Functional/Manager/SerializerManagerTest.php">
<PossiblyUnusedMethod>
<code><![CDATA[it_returns_serializer_manager_with_default_format]]></code>
</PossiblyUnusedMethod>
</file>
<file src="tests/src/Functional/Manager/SerializerRegistryTest.php">
<PossiblyUnusedMethod>
<code><![CDATA[it_creates_registry_with_default_serializers]]></code>
<code><![CDATA[it_lists_all_serializers]]></code>
<code><![CDATA[it_registers_additional_serializers]]></code>
<code><![CDATA[it_throws_exception_for_missing_serializer]]></code>
</PossiblyUnusedMethod>
</file>
<file src="tests/src/Functional/Manager/SerializerTest.php">
<PossiblyUnusedMethod>
<code><![CDATA[it_creates_serializer]]></code>
</PossiblyUnusedMethod>
</file>
<file src="tests/src/Functional/NormalizerRegistryTest.php">
<MixedArgument>
<code><![CDATA[app(NormalizerRegistrationStrategy::class)]]></code>
<code><![CDATA[app(NormalizerRegistrationStrategy::class)]]></code>
<code><![CDATA[app(NormalizerRegistrationStrategy::class)]]></code>
</MixedArgument>
<PossiblyUnusedMethod>
<code><![CDATA[construct_with_default_normalizers]]></code>
<code><![CDATA[it_gets_all_registered_normalizers]]></code>
<code><![CDATA[it_has_normalizer_in_registry]]></code>
<code><![CDATA[it_registers_additional_normalizers]]></code>
</PossiblyUnusedMethod>
</file>
<file src="tests/src/Functional/Normalizers/RamseyUuidNormalizerTest.php">
<ImplicitToStringCast>
<code><![CDATA[$manager->serialize($payload, $format)]]></code>
</ImplicitToStringCast>
<PossiblyNullReference>
<code><![CDATA[deserialize]]></code>
<code><![CDATA[serialize]]></code>
</PossiblyNullReference>
<PossiblyUnusedMethod>
<code><![CDATA[it_deserializes_using_serialize_manager]]></code>
<code><![CDATA[it_serializes_using_serializer_manager]]></code>
<code><![CDATA[serializeDataProvider]]></code>
</PossiblyUnusedMethod>
</file>
<file src="tests/src/Unit/Normalizers/RamseyUuidNormalizerTest.php">
<PossiblyUnusedMethod>
<code><![CDATA[denormalize_throws_exception_for_invalid_uuid]]></code>
<code><![CDATA[it_denormalizes]]></code>
<code><![CDATA[it_gets_supported_types]]></code>
<code><![CDATA[it_normalizes]]></code>
<code><![CDATA[it_supports_denormalization]]></code>
<code><![CDATA[it_supports_normalization]]></code>
</PossiblyUnusedMethod>
</file>
</files>