Skip to content

Commit e5113ba

Browse files
committed
adds PHPStan config
1 parent d68fe77 commit e5113ba

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

phpstan.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
parameters:
2+
level: max
3+
paths:
4+
- src
5+
- tests
6+
reportUnmatchedIgnoredErrors: false

src/AbstractGeocoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected function getJSONByFopen($query)
7474
/** @phpstan-ignore-next-line */
7575
: (isset($http_response_header) ? $http_response_header : null);
7676

77-
/** @phpstan-ignore function.alreadyNarrowedType */
77+
/** @phpstan-ignore-next-line */
7878
if (isset($response_headers) && is_array($response_headers)) {
7979
$error_message = $response_headers[0];
8080
if ($error = error_get_last()) {

0 commit comments

Comments
 (0)