Skip to content

Commit fe5c2ed

Browse files
committed
Fix PHPStan errors
1 parent 7d582c7 commit fe5c2ed

3 files changed

Lines changed: 1 addition & 5 deletions

File tree

src/Scanner/CodeScanner.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected function addComments(ParsedFunction $function, ?Translation $translati
110110

111111
protected function addFlags(ParsedFunction $function, ?Translation $translation): ?Translation
112112
{
113-
if (!$translation instanceof \Gettext\Translation) {
113+
if ($translation === null) {
114114
return $translation;
115115
}
116116

tests/BasePoLoaderTestCase.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,6 @@ public function stringDecodeProvider()
257257

258258
/**
259259
* @dataProvider stringDecodeProvider
260-
* @param mixed $source
261-
* @param mixed $decoded
262260
*/
263261
public function testStringDecode(string $source, string $decoded): void
264262
{

tests/PoGeneratorTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ public function stringEncodeProvider(): array
109109

110110
/**
111111
* @dataProvider stringEncodeProvider
112-
* @param mixed $encoded
113-
* @param mixed $decoded
114112
*/
115113
public function testStringEncode(string $encoded, string $decoded): void
116114
{

0 commit comments

Comments
 (0)