Skip to content

Commit 61f3263

Browse files
committed
Add type castings
1 parent 480f47d commit 61f3263

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/AutoReview/TestsCodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function testDataProvidersValues(string $className): void
146146
\in_array($value[0], $doNotChangeCases, true),
147147
\sprintf(
148148
"Expected value:\n%s\nis already tested if it is not changing, it does not need separate test case (%s::%s).",
149-
$value[0],
149+
(string) $value[0],
150150
$className,
151151
$dataProvider->getName(),
152152
),

tests/Fixer/SingleSpaceAfterStatementFixerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ public function testTokenIsUseful(int $token): void
314314
self::assertNotSame(
315315
$expectedTokens->generateCode(),
316316
$allTokens->generateCode(),
317-
\sprintf('Removing token %s did not broke fixing', Token::getNameForId($token)),
317+
\sprintf('Removing token %s did not broke fixing', (string) Token::getNameForId($token)),
318318
);
319319
}
320320

tests/PriorityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private static function getFixer(string $name, array $config): FixerInterface
140140
}
141141
}
142142

143-
throw new \Exception(\sprintf('Fixer "%s" not found in config: "%s".', $name, \json_encode($config)));
143+
throw new \Exception(\sprintf('Fixer "%s" not found in config: "%s".', (string) $name, (string) \json_encode($config)));
144144
}
145145

146146
private static function createSplFileInfoDouble(): \SplFileInfo

0 commit comments

Comments
 (0)