Skip to content

Commit cf2faec

Browse files
lint fix and change log
1 parent 0b81e47 commit cf2faec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Commands/ExportRequestDocsCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private function confirmFilePathAvailability(): bool
118118

119119
/**
120120
* @param $docs
121-
* @return false|int
121+
* @return bool
122122
*/
123123
private function writeApiDocsToFile(Collection $docs): bool
124124
{
@@ -134,6 +134,6 @@ private function writeApiDocsToFile(Collection $docs): bool
134134
mkdir($targetDirectory, 0755, true);
135135
}
136136

137-
return (bool)file_put_contents($this->exportFilePath, $content);
137+
return file_put_contents($this->exportFilePath, $content) !== false;
138138
}
139139
}

0 commit comments

Comments
 (0)