Skip to content

Commit 275860c

Browse files
committed
Update phpstan-baseline.neon
1 parent 81b8317 commit 275860c

1 file changed

Lines changed: 44 additions & 25 deletions

File tree

phpstan-baseline.neon

Lines changed: 44 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,97 @@
11
parameters:
22
ignoreErrors:
33
-
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
56
count: 1
67
path: lib/Tmdb/Api/AbstractApi.php
78

89
-
9-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
10+
rawMessage: Unreachable statement - code above always terminates.
11+
identifier: deadCode.unreachable
1012
count: 1
1113
path: lib/Tmdb/Api/AbstractApi.php
1214

1315
-
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
1518
count: 1
1619
path: lib/Tmdb/Event/Listener/Logger/LogHttpMessageListener.php
1720

1821
-
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
2024
count: 1
2125
path: lib/Tmdb/Event/Listener/Psr6CachedRequestListener.php
2226

2327
-
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
2530
count: 1
2631
path: lib/Tmdb/Event/Listener/Psr6CachedRequestListener.php
2732

2833
-
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
3339
count: 1
3440
path: lib/Tmdb/Factory/MovieFactory.php
3541

3642
-
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
4148
count: 1
4249
path: lib/Tmdb/Factory/MovieFactory.php
4350

4451
-
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
4654
count: 1
4755
path: lib/Tmdb/Factory/PeopleFactory.php
4856

4957
-
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
5160
count: 1
5261
path: lib/Tmdb/HttpClient/HttpClient.php
5362

5463
-
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
5975
count: 1
6076
path: lib/Tmdb/Model/Movie.php
6177

6278
-
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
6784
count: 1
6885
path: lib/Tmdb/Repository/MovieRepository.php
6986

7087
-
71-
message: "#^Result of \\|\\| is always false\\.$#"
88+
rawMessage: Result of || is always false.
89+
identifier: booleanOr.alwaysFalse
7290
count: 1
7391
path: lib/Tmdb/Repository/TvSeasonRepository.php
7492

7593
-
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
7796
count: 2
7897
path: lib/Tmdb/Repository/TvSeasonRepository.php

0 commit comments

Comments
 (0)