Skip to content

Commit b27b2bf

Browse files
committed
Fix phpstan warning
1 parent 134b705 commit b27b2bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ClassMapGeneratorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ public static function getUniqueTmpDirectory(): string
422422
if (!file_exists($unique) && @mkdir($unique, 0777)) {
423423
return (string) realpath($unique);
424424
}
425-
} while (--$attempts);
425+
} while (--$attempts > 0);
426426

427427
throw new \RuntimeException('Failed to create a unique temporary directory.');
428428
}

0 commit comments

Comments
 (0)