-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add PHPStan * Update php.yml * Update composer.json * Fix PHPStan level 0 * Fix PHPStan level 1 * Update phpstan.neon * Fix PHPStan level 2 * Update composer.json * Fix PHPStan level 3 * Fix tests * Fix PHPStan level 4 * Update src/Common/Tests/TimedGeocoderTest.php Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com> * Update src/Provider/Cache/Tests/ProviderCacheTest.php Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com> * Update src/Provider/Cache/Tests/ProviderCacheTest.php Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com> * Update src/Provider/GeoIP2/Tests/GeoIP2Test.php Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com> * Fix PHPStan level 5 * Normalize composer.json * Rename analyse script * Update composer.json * Update IntegrationTest * Update AlgoliaPlacesTest * Update composer.json * Update RequestInterface vs. getParsedResponse() * Update src/Plugin/PluginProvider.php Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com> * Update src/Plugin/PluginProvider.php Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com> * Use PHPStan baseline instead of ignore See https://phpstan.org/user-guide/baseline --------- Co-authored-by: Tomas Norkūnas <norkunas.tom@gmail.com>
- Loading branch information
Showing
96 changed files
with
491 additions
and
424 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
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,61 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Static method Geocoder\\\\ProviderAggregator\\:\\:getProvider\\(\\) is unused\\.$#" | ||
count: 1 | ||
path: src/Common/ProviderAggregator.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$locations of class Geocoder\\\\Model\\\\AddressCollection constructor expects array\\<Geocoder\\\\Location\\>, array\\<string, string\\> given\\.$#" | ||
count: 2 | ||
path: src/Provider/Chain/Tests/ChainTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$geoIpProvider of class Geocoder\\\\Provider\\\\GeoIP2\\\\GeoIP2Adapter constructor expects GeoIp2\\\\ProviderInterface, PHPUnit\\\\Framework\\\\MockObject\\\\MockObject given\\.$#" | ||
count: 4 | ||
path: src/Provider/GeoIP2/Tests/GeoIP2AdapterTest.php | ||
|
||
- | ||
message: "#^Access to constant ALL on an unknown class IP2Location\\\\Database\\.$#" | ||
count: 1 | ||
path: src/Provider/IP2LocationBinary/IP2LocationBinary.php | ||
|
||
- | ||
message: "#^Call to method lookup\\(\\) on an unknown class IP2Location\\\\Database\\.$#" | ||
count: 1 | ||
path: src/Provider/IP2LocationBinary/IP2LocationBinary.php | ||
|
||
- | ||
message: "#^Instantiated class IP2Location\\\\Database not found\\.$#" | ||
count: 1 | ||
path: src/Provider/IP2LocationBinary/IP2LocationBinary.php | ||
|
||
- | ||
message: "#^Access to constant FILE_IO on an unknown class IP2Location\\\\Database\\.$#" | ||
count: 1 | ||
path: src/Provider/IP2LocationBinary/Tests/IntegrationTest.php | ||
|
||
- | ||
message: "#^Access to property \\$[a-zA-Z_]+ on an unknown class GeoIpRecord\\.$#" | ||
count: 10 | ||
path: src/Provider/MaxMindBinary/MaxMindBinary.php | ||
|
||
- | ||
message: "#^Class GeoIpRecord not found\\.$#" | ||
count: 1 | ||
path: src/Provider/MaxMindBinary/MaxMindBinary.php | ||
|
||
- | ||
message: "#^Constant GEOIP_STANDARD not found\\.$#" | ||
count: 1 | ||
path: src/Provider/MaxMindBinary/MaxMindBinary.php | ||
|
||
- | ||
message: "#^Function GeoIP_record_by_addr not found\\.$#" | ||
count: 1 | ||
path: src/Provider/MaxMindBinary/MaxMindBinary.php | ||
|
||
- | ||
message: "#^Function geoip_(open|close) not found\\.$#" | ||
count: 2 | ||
path: src/Provider/MaxMindBinary/MaxMindBinary.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,9 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
parameters: | ||
level: 5 | ||
paths: | ||
- src | ||
excludePaths: | ||
- **/vendor/** | ||
treatPhpDocTypesAsCertain: false |
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
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
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
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
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.