Skip to content

Commit 8186b93

Browse files
Suppress identical.alwaysTrue
1 parent 210beea commit 8186b93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Framework/MockObject/Generator/Generator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,9 @@ private function generateCodeForTestDoubleClass(string $type, bool $mockObject,
811811
}
812812

813813
/** @var trait-string[] $traits */
814-
$traits = [];
814+
$traits = [];
815+
816+
/** @phpstan-ignore identical.alwaysTrue */
815817
$isPhp82 = PHP_MAJOR_VERSION === 8 && PHP_MINOR_VERSION === 2;
816818

817819
if (!$isReadonly && $isPhp82) {

0 commit comments

Comments
 (0)