Skip to content

Commit 69e73be

Browse files
committed
fix compare bool
1 parent a7a2a62 commit 69e73be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rotation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ private function moveContentToTempFile(string $filename): ?string
173173

174174
$fd = fopen($filename, 'r+');
175175

176-
if (!$fd) {
176+
if ($fd === false) {
177177
$this->exception(
178178
new Exception(sprintf('the file %s not can open.', $filename), 20)
179179
);

0 commit comments

Comments
 (0)