Skip to content

Commit b9184cd

Browse files
committed
Update PHPStan
1 parent ee8037c commit b9184cd

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

phpstan.neon

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
parameters:
2-
level: 6
2+
level: 7
33
paths:
44
- src
55
excludePaths:
66
- src/Command/BaseNotTypedCommand.php
7-
checkGenericClassInNonGenericObjectType: true
8-
checkMissingIterableValueType: true
97
bootstrapFiles:
108
- src/Command/DiffCommand.php # contains class alias

src/Formatter/AbstractFormatter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ private function terminalLink($url, $title)
9292
return $title;
9393
}
9494

95+
// @phpstan-ignore function.alreadyNarrowedType
9596
return method_exists('Symfony\Component\Console\Formatter\OutputFormatterStyle', 'setHref') ? sprintf('<href=%s>%s</>', $url, $title) : $title;
9697
}
9798
}

src/Formatter/JsonFormatter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public function renderSingle(DiffEntries $entries, $title, $withUrls)
3636
*/
3737
private function format(array $data)
3838
{
39+
// @phpstan-ignore argument.type
3940
$this->output->writeln(json_encode($data, 128)); // JSON_PRETTY_PRINT
4041
}
4142

src/PackageDiff.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ private function getFileContents($path)
121121
}
122122

123123
if (filter_var($path, FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED) || file_exists($path)) {
124+
// @phpstan-ignore return.type
124125
return file_get_contents($path);
125126
}
126127

0 commit comments

Comments
 (0)