|
1 | 1 | parameters: |
2 | 2 | ignoreErrors: |
3 | 3 | - |
4 | | - message: "#^Instanceof between Psr\\\\Http\\\\Message\\\\StreamInterface and Psr\\\\Http\\\\Message\\\\StreamInterface will always evaluate to true\\.$#" |
| 4 | + rawMessage: Instanceof between Psr\Http\Message\StreamInterface and Psr\Http\Message\StreamInterface will always evaluate to true. |
| 5 | + identifier: instanceof.alwaysTrue |
5 | 6 | count: 1 |
6 | 7 | path: lib/Tmdb/Api/AbstractApi.php |
7 | 8 |
|
8 | 9 | - |
9 | | - message: "#^Unreachable statement \\- code above always terminates\\.$#" |
| 10 | + rawMessage: Unreachable statement - code above always terminates. |
| 11 | + identifier: deadCode.unreachable |
10 | 12 | count: 1 |
11 | 13 | path: lib/Tmdb/Api/AbstractApi.php |
12 | 14 |
|
13 | 15 | - |
14 | | - message: "#^Strict comparison using \\!\\=\\= between null and Psr\\\\Http\\\\Message\\\\StreamInterface will always evaluate to true\\.$#" |
| 16 | + rawMessage: 'Strict comparison using !== between null and Psr\Http\Message\StreamInterface will always evaluate to true.' |
| 17 | + identifier: notIdentical.alwaysTrue |
15 | 18 | count: 1 |
16 | 19 | path: lib/Tmdb/Event/Listener/Logger/LogHttpMessageListener.php |
17 | 20 |
|
18 | 21 | - |
19 | | - message: "#^Parameter \\#3 \\$first of method Http\\\\Client\\\\Common\\\\Plugin\\\\CachePlugin\\:\\:handleRequest\\(\\) expects callable\\(Psr\\\\Http\\\\Message\\\\RequestInterface\\)\\: Http\\\\Promise\\\\Promise, Closure\\(\\)\\: void given\\.$#" |
| 22 | + rawMessage: 'Parameter #3 $first of method Http\Client\Common\Plugin\CachePlugin::handleRequest() expects callable(Psr\Http\Message\RequestInterface): Http\Promise\Promise, Closure(): void given.' |
| 23 | + identifier: argument.type |
20 | 24 | count: 1 |
21 | 25 | path: lib/Tmdb/Event/Listener/Psr6CachedRequestListener.php |
22 | 26 |
|
23 | 27 | - |
24 | | - message: "#^Property Tmdb\\\\Event\\\\Listener\\\\Psr6CachedRequestListener\\:\\:\\$options is never read, only written\\.$#" |
| 28 | + rawMessage: 'Property Tmdb\Event\Listener\Psr6CachedRequestListener::$options is never read, only written.' |
| 29 | + identifier: property.onlyWritten |
25 | 30 | count: 1 |
26 | 31 | path: lib/Tmdb/Event/Listener/Psr6CachedRequestListener.php |
27 | 32 |
|
28 | 33 | - |
29 | | - message: """ |
30 | | - #^Call to deprecated method setReleases\\(\\) of class Tmdb\\\\Model\\\\Movie\\: |
31 | | - Use the setReleaseDates instead\\.$# |
32 | | - """ |
| 34 | + rawMessage: ''' |
| 35 | + Call to deprecated method setReleases() of class Tmdb\Model\Movie: |
| 36 | + Use the setReleaseDates instead. |
| 37 | + ''' |
| 38 | + identifier: method.deprecated |
33 | 39 | count: 1 |
34 | 40 | path: lib/Tmdb/Factory/MovieFactory.php |
35 | 41 |
|
36 | 42 | - |
37 | | - message: """ |
38 | | - #^Instantiation of deprecated class Tmdb\\\\Model\\\\Movie\\\\Release\\: |
39 | | - Use ReleaseDate instead$# |
40 | | - """ |
| 43 | + rawMessage: ''' |
| 44 | + Instantiation of deprecated class Tmdb\Model\Movie\Release: |
| 45 | + Use ReleaseDate instead |
| 46 | + ''' |
| 47 | + identifier: new.deprecatedClass |
41 | 48 | count: 1 |
42 | 49 | path: lib/Tmdb/Factory/MovieFactory.php |
43 | 50 |
|
44 | 51 | - |
45 | | - message: "#^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\\(\\)$#" |
| 52 | + 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()' |
| 53 | + identifier: method.childReturnType |
46 | 54 | count: 1 |
47 | 55 | path: lib/Tmdb/Factory/PeopleFactory.php |
48 | 56 |
|
49 | 57 | - |
50 | | - message: "#^Property Tmdb\\\\HttpClient\\\\HttpClient\\:\\:\\$sessionToken is never written, only read\\.$#" |
| 58 | + 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.' |
| 59 | + identifier: property.unusedType |
51 | 60 | count: 1 |
52 | 61 | path: lib/Tmdb/HttpClient/HttpClient.php |
53 | 62 |
|
54 | 63 | - |
55 | | - message: """ |
56 | | - #^Access to deprecated property \\$releases of class Tmdb\\\\Model\\\\Movie\\: |
57 | | - Use \\$release_dates instead$# |
58 | | - """ |
| 64 | + rawMessage: 'Property Tmdb\HttpClient\HttpClient::$sessionToken is never written, only read.' |
| 65 | + identifier: property.onlyRead |
| 66 | + count: 1 |
| 67 | + path: lib/Tmdb/HttpClient/HttpClient.php |
| 68 | + |
| 69 | + - |
| 70 | + rawMessage: ''' |
| 71 | + Access to deprecated property $releases of class Tmdb\Model\Movie: |
| 72 | + Use $release_dates instead |
| 73 | + ''' |
| 74 | + identifier: property.deprecated |
59 | 75 | count: 1 |
60 | 76 | path: lib/Tmdb/Model/Movie.php |
61 | 77 |
|
62 | 78 | - |
63 | | - message: """ |
64 | | - #^Return type of method Tmdb\\\\Repository\\\\MovieRepository\\:\\:getReleases\\(\\) has typehint with deprecated class Tmdb\\\\Model\\\\Movie\\\\Release\\: |
65 | | - Use ReleaseDate instead$# |
66 | | - """ |
| 79 | + rawMessage: ''' |
| 80 | + Return type of method Tmdb\Repository\MovieRepository::getReleases() has typehint with deprecated class Tmdb\Model\Movie\Release: |
| 81 | + Use ReleaseDate instead |
| 82 | + ''' |
| 83 | + identifier: return.deprecatedClass |
67 | 84 | count: 1 |
68 | 85 | path: lib/Tmdb/Repository/MovieRepository.php |
69 | 86 |
|
70 | 87 | - |
71 | | - message: "#^Result of \\|\\| is always false\\.$#" |
| 88 | + rawMessage: Result of || is always false. |
| 89 | + identifier: booleanOr.alwaysFalse |
72 | 90 | count: 1 |
73 | 91 | path: lib/Tmdb/Repository/TvSeasonRepository.php |
74 | 92 |
|
75 | 93 | - |
76 | | - message: "#^Strict comparison using \\=\\=\\= between null and int will always evaluate to false\\.$#" |
| 94 | + rawMessage: 'Strict comparison using === between null and int will always evaluate to false.' |
| 95 | + identifier: identical.alwaysFalse |
77 | 96 | count: 2 |
78 | 97 | path: lib/Tmdb/Repository/TvSeasonRepository.php |
0 commit comments