Skip to content

Commit bf4cda6

Browse files
committed
:octocat: dependency update
1 parent 836d7a6 commit bf4cda6

File tree

4 files changed

+89
-37
lines changed

4 files changed

+89
-37
lines changed

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"ext-sodium": "*",
3838
"chillerlan/php-http-message-utils": "^2.2.2",
3939
"chillerlan/php-settings-container": "^3.2.1",
40-
"chillerlan/php-standard-utilities": "^1.0",
40+
"chillerlan/php-standard-utilities": "^1.0.1",
4141
"psr/http-client": "^1.0",
4242
"psr/http-message": "^1.1 || ^2.0",
4343
"psr/log": "^1.1 || ^2.0 || ^3.0"
@@ -48,10 +48,10 @@
4848
"guzzlehttp/guzzle": "^7.9",
4949
"monolog/monolog": "^3.7",
5050
"phpmd/phpmd": "^2.15",
51-
"phpstan/phpstan": "^1.12",
52-
"phpstan/phpstan-deprecation-rules": "^1.2",
51+
"phpstan/phpstan": "^2.1.18",
52+
"phpstan/phpstan-deprecation-rules": "^2.0.3",
5353
"phpunit/phpunit": "^10.5",
54-
"slevomat/coding-standard": "^8.15",
54+
"slevomat/coding-standard": "^8.19",
5555
"squizlabs/php_codesniffer": "^3.10"
5656
},
5757
"suggest": {

phpstan-baseline.neon

Lines changed: 83 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,132 +1,184 @@
11
parameters:
22
ignoreErrors:
33
-
4-
message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, array\\<string\\>\\|string given\\.$#"
4+
message: '#^Parameter \#2 \$array of function implode expects array\|null, array\<string\>\|string given\.$#'
5+
identifier: argument.type
56
count: 2
67
path: src/Core/OAuth1Provider.php
78

89
-
9-
message: "#^Parameter \\#1 \\$separator of function explode expects non\\-empty\\-string, string given\\.$#"
10+
message: '#^Parameter \#1 \$separator of function explode expects non\-empty\-string, string given\.$#'
11+
identifier: argument.type
1012
count: 1
1113
path: src/Core/OAuth2Provider.php
1214

1315
-
14-
message: "#^Method chillerlan\\\\OAuth\\\\Core\\\\OAuthProvider\\:\\:cleanBodyParams\\(\\) should return array\\<string, string\\> but returns array\\<int\\|string, bool\\|float\\|int\\|string\\|null\\>\\.$#"
16+
message: '#^Method chillerlan\\OAuth\\Core\\OAuthProvider\:\:cleanBodyParams\(\) should return array\<string, string\> but returns array\<int\|string, bool\|float\|int\|string\|null\>\.$#'
17+
identifier: return.type
1518
count: 1
1619
path: src/Core/OAuthProvider.php
1720

1821
-
19-
message: "#^Method chillerlan\\\\OAuth\\\\Core\\\\OAuthProvider\\:\\:cleanQueryParams\\(\\) should return array\\<string, string\\> but returns array\\<int\\|string, bool\\|float\\|int\\|string\\|null\\>\\.$#"
22+
message: '#^Method chillerlan\\OAuth\\Core\\OAuthProvider\:\:cleanQueryParams\(\) should return array\<string, string\> but returns array\<int\|string, bool\|float\|int\|string\|null\>\.$#'
23+
identifier: return.type
2024
count: 1
2125
path: src/Core/OAuthProvider.php
2226

2327
-
24-
message: "#^Parameter \\#1 \\$length of function random_bytes expects int\\<1, max\\>, int given\\.$#"
28+
message: '#^Parameter \#1 \$length of function random_bytes expects int\<1, max\>, int given\.$#'
29+
identifier: argument.type
2530
count: 1
2631
path: src/Core/OAuthProvider.php
2732

2833
-
29-
message: "#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\<T of object\\>\\|T of object, string given\\.$#"
34+
message: '#^Parameter \#1 \$objectOrClass of class ReflectionClass constructor expects class\-string\<T of object\>\|T of object, string given\.$#'
35+
identifier: argument.type
3036
count: 1
3137
path: src/Core/Utilities.php
3238

3339
-
34-
message: "#^Method chillerlan\\\\OAuth\\\\OAuthProviderFactory\\:\\:getProvider\\(\\) should return chillerlan\\\\OAuth\\\\Core\\\\OAuthInterface but returns object\\.$#"
40+
message: '#^Method chillerlan\\OAuth\\OAuthProviderFactory\:\:getProvider\(\) should return chillerlan\\OAuth\\Core\\OAuthInterface but returns object\.$#'
41+
identifier: return.type
3542
count: 1
3643
path: src/OAuthProviderFactory.php
3744

3845
-
39-
message: "#^Access to an undefined property object\\:\\:\\$name\\.$#"
46+
message: '#^Access to an undefined property object\:\:\$name\.$#'
47+
identifier: property.notFound
4048
count: 1
4149
path: src/Providers/GuildWars2.php
4250

4351
-
44-
message: "#^Access to an undefined property object\\:\\:\\$permissions\\.$#"
52+
message: '#^Access to an undefined property object\:\:\$permissions\.$#'
53+
identifier: property.notFound
4554
count: 1
4655
path: src/Providers/GuildWars2.php
4756

4857
-
49-
message: "#^Method chillerlan\\\\OAuth\\\\Providers\\\\LastFM\\:\\:parseTrack\\(\\) return type has no value type specified in iterable type array\\.$#"
58+
message: '#^Method chillerlan\\OAuth\\Providers\\LastFM\:\:parseTrack\(\) return type has no value type specified in iterable type array\.$#'
59+
identifier: missingType.iterableValue
5060
count: 1
5161
path: src/Providers/LastFM.php
5262

5363
-
54-
message: "#^Method chillerlan\\\\OAuth\\\\Providers\\\\LastFM\\:\\:scrobble\\(\\) has parameter \\$tracks with no value type specified in iterable type array\\.$#"
64+
message: '#^Method chillerlan\\OAuth\\Providers\\LastFM\:\:scrobble\(\) has parameter \$tracks with no value type specified in iterable type array\.$#'
65+
identifier: missingType.iterableValue
5566
count: 1
5667
path: src/Providers/LastFM.php
5768

5869
-
59-
message: "#^Method chillerlan\\\\OAuth\\\\Providers\\\\LastFM\\:\\:scrobble\\(\\) return type has no value type specified in iterable type array\\.$#"
70+
message: '#^Method chillerlan\\OAuth\\Providers\\LastFM\:\:scrobble\(\) return type has no value type specified in iterable type array\.$#'
71+
identifier: missingType.iterableValue
6072
count: 1
6173
path: src/Providers/LastFM.php
6274

6375
-
64-
message: "#^Method chillerlan\\\\OAuth\\\\Providers\\\\LastFM\\:\\:sendScrobbles\\(\\) return type has no value type specified in iterable type array\\.$#"
76+
message: '#^Method chillerlan\\OAuth\\Providers\\LastFM\:\:sendScrobbles\(\) return type has no value type specified in iterable type array\.$#'
77+
identifier: missingType.iterableValue
6578
count: 1
6679
path: src/Providers/LastFM.php
6780

6881
-
69-
message: "#^Parameter \\#1 \\$body of method chillerlan\\\\OAuth\\\\Providers\\\\LastFM\\:\\:sendScrobbles\\(\\) expects array\\<string, string\\>, array\\<string, bool\\|float\\|int\\|string\\> given\\.$#"
82+
message: '#^Parameter \#1 \$body of method chillerlan\\OAuth\\Providers\\LastFM\:\:sendScrobbles\(\) expects array\<string, string\>, array\<string, bool\|float\|int\|string\> given\.$#'
83+
identifier: argument.type
7084
count: 1
7185
path: src/Providers/LastFM.php
7286

7387
-
74-
message: "#^Property chillerlan\\\\OAuth\\\\Core\\\\AccessToken\\:\\:\\$expires \\(int\\) does not accept DateInterval\\|DateTime\\|int\\|null\\.$#"
88+
message: '#^Property chillerlan\\OAuth\\Core\\AccessToken\:\:\$expires \(int\) does not accept DateInterval\|DateTime\|int\|null\.$#'
89+
identifier: assign.propertyType
7590
count: 1
7691
path: tests/Core/AccessTokenTest.php
7792

7893
-
79-
message: "#^Call to method chillerlan\\\\OAuth\\\\Core\\\\AuthenticatedUser\\:\\:fromIterable\\(\\) on a separate line has no effect\\.$#"
94+
message: '#^Call to method chillerlan\\OAuth\\Core\\AuthenticatedUser\:\:fromIterable\(\) on a separate line has no effect\.$#'
95+
identifier: method.resultUnused
8096
count: 1
8197
path: tests/Core/AuthenticatedUserTest.php
8298

8399
-
84-
message: "#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\<T of object\\>\\|T of object, string given\\.$#"
100+
message: '#^Parameter \#1 \$objectOrClass of class ReflectionClass constructor expects class\-string\<T of object\>\|T of object, string given\.$#'
101+
identifier: argument.type
85102
count: 2
86103
path: tests/Core/UtilitiesTest.php
87104

88105
-
89-
message: "#^Parameter \\#2 \\$string of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertMatchesRegularExpression\\(\\) expects string, int\\|string given\\.$#"
106+
message: '#^Parameter \#2 \$string of static method PHPUnit\\Framework\\Assert\:\:assertMatchesRegularExpression\(\) expects string, int\|string given\.$#'
107+
identifier: argument.type
90108
count: 1
91109
path: tests/Providers/Live/AmazonAPITest.php
92110

93111
-
94-
message: "#^Access to an undefined property chillerlan\\\\DotEnv\\\\DotEnv\\:\\:\\$GW2_TOKEN\\.$#"
112+
message: '#^Access to an undefined property chillerlan\\DotEnv\\DotEnv\:\:\$GW2_TOKEN\.$#'
113+
identifier: property.notFound
95114
count: 1
96115
path: tests/Providers/Live/GuildWars2APITest.php
97116

98117
-
99-
message: "#^Access to an undefined property chillerlan\\\\DotEnv\\\\DotEnv\\:\\:\\$GW2_TOKEN_NAME\\.$#"
118+
message: '#^Access to an undefined property chillerlan\\DotEnv\\DotEnv\:\:\$GW2_TOKEN_NAME\.$#'
119+
identifier: property.notFound
100120
count: 1
101121
path: tests/Providers/Live/GuildWars2APITest.php
102122

103123
-
104-
message: "#^Dead catch \\- chillerlan\\\\OAuth\\\\Providers\\\\ProviderException is never thrown in the try block\\.$#"
124+
message: '#^Dead catch \- chillerlan\\OAuth\\Providers\\ProviderException is never thrown in the try block\.$#'
125+
identifier: catch.neverThrown
105126
count: 1
106127
path: tests/Providers/Live/MusicBrainzAPITest.php
107128

108129
-
109-
message: """
110-
#^Fetching class constant class of deprecated class chillerlan\\\\OAuth\\\\Providers\\\\OpenStreetmap\\:
111-
https\\://github\\.com/openstreetmap/operations/issues/867$#
112-
"""
130+
message: '''
131+
#^Access to constant on deprecated class chillerlan\\OAuth\\Providers\\OpenStreetmap\:
132+
https\://github\.com/openstreetmap/operations/issues/867$#
133+
'''
134+
identifier: classConstant.deprecatedClass
113135
count: 1
114136
path: tests/Providers/Live/OpenStreetmapAPITest.php
115137

116138
-
117-
message: "#^Parameter \\#1 \\$content of method Psr\\\\Http\\\\Message\\\\StreamFactoryInterface\\:\\:createStream\\(\\) expects string, string\\|false given\\.$#"
139+
message: '''
140+
#^PHPDoc tag @property for \$provider references deprecated class chillerlan\\OAuth\\Providers\\OpenStreetmap\:
141+
https\://github\.com/openstreetmap/operations/issues/867$#
142+
'''
143+
identifier: propertyTag.deprecatedClass
144+
count: 1
145+
path: tests/Providers/Live/OpenStreetmapAPITest.php
146+
147+
-
148+
message: '#^Parameter \#1 \$content of method Psr\\Http\\Message\\StreamFactoryInterface\:\:createStream\(\) expects string, string\|false given\.$#'
149+
identifier: argument.type
118150
count: 2
119151
path: tests/Providers/Unit/OAuth2ProviderUnitTestAbstract.php
120152

121153
-
122-
message: "#^Parameter \\#1 \\$expected of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) expects class\\-string\\<object\\>, string given\\.$#"
154+
message: '#^Parameter \#1 \$expected of static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) expects class\-string\<object\>, string given\.$#'
155+
identifier: argument.type
123156
count: 1
124157
path: tests/Providers/Unit/OAuthProviderUnitTestAbstract.php
125158

126159
-
127-
message: """
128-
#^Fetching class constant class of deprecated class chillerlan\\\\OAuth\\\\Providers\\\\OpenStreetmap\\:
129-
https\\://github\\.com/openstreetmap/operations/issues/867$#
130-
"""
160+
message: '''
161+
#^PHPDoc tag @property for \$provider references deprecated class chillerlan\\OAuth\\Providers\\OpenStreetmap\:
162+
https\://github\.com/openstreetmap/operations/issues/867$#
163+
'''
164+
identifier: propertyTag.deprecatedClass
165+
count: 1
166+
path: tests/Providers/Unit/OpenStreetmap2Test.php
167+
168+
-
169+
message: '''
170+
#^Access to constant on deprecated class chillerlan\\OAuth\\Providers\\OpenStreetmap\:
171+
https\://github\.com/openstreetmap/operations/issues/867$#
172+
'''
173+
identifier: classConstant.deprecatedClass
174+
count: 1
175+
path: tests/Providers/Unit/OpenStreetmapTest.php
176+
177+
-
178+
message: '''
179+
#^PHPDoc tag @property for \$provider references deprecated class chillerlan\\OAuth\\Providers\\OpenStreetmap\:
180+
https\://github\.com/openstreetmap/operations/issues/867$#
181+
'''
182+
identifier: propertyTag.deprecatedClass
131183
count: 1
132184
path: tests/Providers/Unit/OpenStreetmapTest.php

tests/Core/OAuthOptionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testSetFileStoragePath():void{
4444

4545
public function testSetFileStoragePathInvalidException():void{
4646
$this->expectException(InvalidArgumentException::class);
47-
$this->expectExceptionMessage('invalid file path');
47+
$this->expectExceptionMessage('invalid path');
4848
/** @phan-suppress-next-line PhanNoopNew */
4949
new OAuthOptions(['fileStoragePath' => '/foo']);
5050
}

tests/Core/UtilitiesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testGetProvidersWithGivenPath():void{
3838

3939
public function testGetProvidersInvalidPathException():void{
4040
$this->expectException(InvalidArgumentException::class);
41-
$this->expectExceptionMessage('invalid file path');
41+
$this->expectExceptionMessage('invalid path');
4242

4343
Utilities::getProviders('/foo');
4444
}

0 commit comments

Comments
 (0)