-
-
Notifications
You must be signed in to change notification settings - Fork 120
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
119 lines (103 loc) · 4.35 KB
/
Copy pathphpstan-baseline.neon
File metadata and controls
119 lines (103 loc) · 4.35 KB
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
parameters:
ignoreErrors:
-
rawMessage: Instanceof between Psr\Http\Message\StreamInterface and Psr\Http\Message\StreamInterface will always evaluate to true.
identifier: instanceof.alwaysTrue
count: 1
path: lib/Tmdb/Api/AbstractApi.php
-
rawMessage: Unreachable statement - code above always terminates.
identifier: deadCode.unreachable
count: 1
path: lib/Tmdb/Api/AbstractApi.php
-
rawMessage: 'Strict comparison using !== between null and Psr\Http\Message\StreamInterface will always evaluate to true.'
identifier: notIdentical.alwaysTrue
count: 1
path: lib/Tmdb/Event/Listener/Logger/LogHttpMessageListener.php
# The method_exists(setOptions) guard supports symfony/options-resolver versions both
# with and without the method. PHPStan resolves against the installed version on each
# CI job, so exactly one of these two outcomes fires per job; reportUnmatched silences
# the other.
-
rawMessage: "Call to function method_exists() with Symfony\\Component\\OptionsResolver\\OptionsResolver and 'setOptions' will always evaluate to true."
identifier: function.alreadyNarrowedType
reportUnmatched: false
path: lib/Tmdb/Client.php
-
rawMessage: "Call to function method_exists() with Symfony\\Component\\OptionsResolver\\OptionsResolver and 'setOptions' will always evaluate to false."
identifier: function.impossibleType
reportUnmatched: false
path: lib/Tmdb/Client.php
-
rawMessage: 'Parameter #3 $first of method Http\Client\Common\Plugin\AbstractCachePlugin::handleRequest() expects callable(Psr\Http\Message\RequestInterface): Http\Promise\Promise, Closure(): void given.'
identifier: argument.type
count: 1
path: lib/Tmdb/Event/Listener/Psr6CachedRequestListener.php
-
rawMessage: 'Call to method handleRequest() of internal class Http\Client\Common\Plugin\AbstractCachePlugin from outside its root namespace Http.'
identifier: method.internalClass
count: 1
path: lib/Tmdb/Event/Listener/Psr6CachedRequestListener.php
-
rawMessage: 'Property Tmdb\Event\Listener\Psr6CachedRequestListener::$options is never read, only written.'
identifier: property.onlyWritten
count: 1
path: lib/Tmdb/Event/Listener/Psr6CachedRequestListener.php
-
rawMessage: '''
Call to deprecated method setReleases() of class Tmdb\Model\Movie:
Use the setReleaseDates instead.
'''
identifier: method.deprecated
count: 1
path: lib/Tmdb/Factory/MovieFactory.php
-
rawMessage: '''
Instantiation of deprecated class Tmdb\Model\Movie\Release:
Use ReleaseDate instead
'''
identifier: new.deprecatedClass
count: 1
path: lib/Tmdb/Factory/MovieFactory.php
-
rawMessage: 'Return type (Tmdb\Model\Collection\People) of method Tmdb\Factory\PeopleFactory::createCollection() should be compatible with return type (Tmdb\Model\Common\GenericCollection<Tmdb\Model\AbstractModel>) of method Tmdb\Factory\AbstractFactory<Tmdb\Model\AbstractModel>::createCollection()'
identifier: method.childReturnType
count: 1
path: lib/Tmdb/Factory/PeopleFactory.php
-
rawMessage: 'Property Tmdb\HttpClient\HttpClient::$sessionToken (Tmdb\Token\Session\SessionToken|null) is never assigned Tmdb\Token\Session\SessionToken so it can be removed from the property type.'
identifier: property.unusedType
count: 1
path: lib/Tmdb/HttpClient/HttpClient.php
-
rawMessage: 'Property Tmdb\HttpClient\HttpClient::$sessionToken is never written, only read.'
identifier: property.onlyRead
count: 1
path: lib/Tmdb/HttpClient/HttpClient.php
-
rawMessage: '''
Access to deprecated property $releases of class Tmdb\Model\Movie:
Use $release_dates instead
'''
identifier: property.deprecated
count: 1
path: lib/Tmdb/Model/Movie.php
-
rawMessage: '''
Return type of method Tmdb\Repository\MovieRepository::getReleases() has typehint with deprecated class Tmdb\Model\Movie\Release:
Use ReleaseDate instead
'''
identifier: return.deprecatedClass
count: 1
path: lib/Tmdb/Repository/MovieRepository.php
-
rawMessage: Result of || is always false.
identifier: booleanOr.alwaysFalse
count: 1
path: lib/Tmdb/Repository/TvSeasonRepository.php
-
rawMessage: 'Strict comparison using === between null and int will always evaluate to false.'
identifier: identical.alwaysFalse
count: 2
path: lib/Tmdb/Repository/TvSeasonRepository.php