-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a64441
commit 42fd089
Showing
60 changed files
with
385 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
/.build export-ignore | ||
/.config export-ignore | ||
/.github export-ignore | ||
/.idea export-ignore | ||
/.phan export-ignore | ||
/.phpdoc export-ignore | ||
/docs export-ignore | ||
/examples export-ignore | ||
/public export-ignore | ||
/tests export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.readthedocs.yml export-ignore | ||
/phpcs.xml.dist export-ignore | ||
/phpdoc.xml.dist export-ignore | ||
/phpmd.xml.dist export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/.build export-ignore | ||
/.config export-ignore | ||
/.github export-ignore | ||
/.idea export-ignore | ||
/.phan export-ignore | ||
/.phpdoc export-ignore | ||
/docs export-ignore | ||
/examples export-ignore | ||
/public export-ignore | ||
/tests export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.readthedocs.yml export-ignore | ||
/composer.lock export-ignore | ||
/phpcs.xml.dist export-ignore | ||
/phpdoc.xml.dist export-ignore | ||
/phpmd.xml.dist export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/phpstan.dist.neon export-ignore | ||
/phpstan-baseline.neon export-ignore | ||
|
||
*.php diff=php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ phpcs.xml | |
phpdoc.xml | ||
phpmd.xml | ||
phpunit.xml | ||
phpstan.neon |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Parameter \\#2 \\$array of function implode expects array\\|null, array\\<string\\>\\|string given\\.$#" | ||
count: 2 | ||
path: src/Core/OAuth1Provider.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$separator of function explode expects non\\-empty\\-string, string given\\.$#" | ||
count: 1 | ||
path: src/Core/OAuth2Provider.php | ||
|
||
- | ||
message: "#^Method chillerlan\\\\OAuth\\\\Core\\\\OAuthProvider\\:\\:cleanBodyParams\\(\\) should return array\\<string, string\\> but returns array\\<int\\|string, bool\\|float\\|int\\|string\\|null\\>\\.$#" | ||
count: 1 | ||
path: src/Core/OAuthProvider.php | ||
|
||
- | ||
message: "#^Method chillerlan\\\\OAuth\\\\Core\\\\OAuthProvider\\:\\:cleanQueryParams\\(\\) should return array\\<string, string\\> but returns array\\<int\\|string, bool\\|float\\|int\\|string\\|null\\>\\.$#" | ||
count: 1 | ||
path: src/Core/OAuthProvider.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$content of method Psr\\\\Http\\\\Message\\\\StreamFactoryInterface\\:\\:createStream\\(\\) expects string, string\\|false given\\.$#" | ||
count: 1 | ||
path: src/Core/OAuthProvider.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$length of function random_bytes expects int\\<1, max\\>, int given\\.$#" | ||
count: 1 | ||
path: src/Core/OAuthProvider.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\<T of object\\>\\|T of object, string given\\.$#" | ||
count: 1 | ||
path: src/Core/Utilities.php | ||
|
||
- | ||
message: "#^Method chillerlan\\\\OAuth\\\\OAuthProviderFactory\\:\\:getProvider\\(\\) should return chillerlan\\\\OAuth\\\\Core\\\\OAuthInterface but returns object\\.$#" | ||
count: 1 | ||
path: src/OAuthProviderFactory.php | ||
|
||
- | ||
message: "#^Access to an undefined property object\\:\\:\\$name\\.$#" | ||
count: 1 | ||
path: src/Providers/GuildWars2.php | ||
|
||
- | ||
message: "#^Access to an undefined property object\\:\\:\\$permissions\\.$#" | ||
count: 1 | ||
path: src/Providers/GuildWars2.php | ||
|
||
- | ||
message: "#^Method chillerlan\\\\OAuth\\\\Providers\\\\LastFM\\:\\:parseTrack\\(\\) return type has no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/Providers/LastFM.php | ||
|
||
- | ||
message: "#^Method chillerlan\\\\OAuth\\\\Providers\\\\LastFM\\:\\:scrobble\\(\\) has parameter \\$tracks with no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/Providers/LastFM.php | ||
|
||
- | ||
message: "#^Method chillerlan\\\\OAuth\\\\Providers\\\\LastFM\\:\\:scrobble\\(\\) return type has no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/Providers/LastFM.php | ||
|
||
- | ||
message: "#^Method chillerlan\\\\OAuth\\\\Providers\\\\LastFM\\:\\:sendScrobbles\\(\\) return type has no value type specified in iterable type array\\.$#" | ||
count: 1 | ||
path: src/Providers/LastFM.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$body of method chillerlan\\\\OAuth\\\\Providers\\\\LastFM\\:\\:sendScrobbles\\(\\) expects array\\<string, string\\>, array\\<string, bool\\|float\\|int\\|string\\> given\\.$#" | ||
count: 1 | ||
path: src/Providers/LastFM.php | ||
|
||
- | ||
message: "#^Property chillerlan\\\\OAuth\\\\Core\\\\AccessToken\\:\\:\\$expires \\(int\\) does not accept DateInterval\\|DateTime\\|int\\|null\\.$#" | ||
count: 1 | ||
path: tests/Core/AccessTokenTest.php | ||
|
||
- | ||
message: "#^Call to method chillerlan\\\\OAuth\\\\Core\\\\AuthenticatedUser\\:\\:fromIterable\\(\\) on a separate line has no effect\\.$#" | ||
count: 1 | ||
path: tests/Core/AuthenticatedUserTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\<T of object\\>\\|T of object, string given\\.$#" | ||
count: 2 | ||
path: tests/Core/UtilitiesTest.php | ||
|
||
- | ||
message: "#^Parameter \\#2 \\$string of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertMatchesRegularExpression\\(\\) expects string, int\\|string given\\.$#" | ||
count: 1 | ||
path: tests/Providers/Live/AmazonAPITest.php | ||
|
||
- | ||
message: "#^Access to an undefined property chillerlan\\\\DotEnv\\\\DotEnv\\:\\:\\$GW2_TOKEN\\.$#" | ||
count: 1 | ||
path: tests/Providers/Live/GuildWars2APITest.php | ||
|
||
- | ||
message: "#^Access to an undefined property chillerlan\\\\DotEnv\\\\DotEnv\\:\\:\\$GW2_TOKEN_NAME\\.$#" | ||
count: 1 | ||
path: tests/Providers/Live/GuildWars2APITest.php | ||
|
||
- | ||
message: "#^Dead catch \\- chillerlan\\\\OAuth\\\\Providers\\\\ProviderException is never thrown in the try block\\.$#" | ||
count: 1 | ||
path: tests/Providers/Live/MusicBrainzAPITest.php | ||
|
||
- | ||
message: """ | ||
#^Fetching class constant class of deprecated class chillerlan\\\\OAuth\\\\Providers\\\\OpenStreetmap\\: | ||
https\\://github\\.com/openstreetmap/operations/issues/867$# | ||
""" | ||
count: 1 | ||
path: tests/Providers/Live/OpenStreetmapAPITest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$content of method Psr\\\\Http\\\\Message\\\\StreamFactoryInterface\\:\\:createStream\\(\\) expects string, string\\|false given\\.$#" | ||
count: 2 | ||
path: tests/Providers/Unit/OAuth2ProviderUnitTestAbstract.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$expected of static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) expects class\\-string\\<object\\>, string given\\.$#" | ||
count: 1 | ||
path: tests/Providers/Unit/OAuthProviderUnitTestAbstract.php | ||
|
||
- | ||
message: """ | ||
#^Fetching class constant class of deprecated class chillerlan\\\\OAuth\\\\Providers\\\\OpenStreetmap\\: | ||
https\\://github\\.com/openstreetmap/operations/issues/867$# | ||
""" | ||
count: 1 | ||
path: tests/Providers/Unit/OpenStreetmapTest.php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# https://phpstan.org/config-reference | ||
|
||
parameters: | ||
level: 8 | ||
tmpDir: .build/phpstan-cache | ||
paths: | ||
# - examples | ||
- src | ||
- tests | ||
|
||
treatPhpDocTypesAsCertain: false | ||
|
||
|
||
includes: | ||
- phpstan-baseline.neon | ||
- vendor/phpstan/phpstan/conf/bleedingEdge.neon | ||
- vendor/phpstan/phpstan-deprecation-rules/rules.neon | ||
- vendor/chillerlan/php-settings-container/rules-magic-access.neon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.