We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b81e47 commit cf2faecCopy full SHA for cf2faec
src/Commands/ExportRequestDocsCommand.php
@@ -118,7 +118,7 @@ private function confirmFilePathAvailability(): bool
118
119
/**
120
* @param $docs
121
- * @return false|int
+ * @return bool
122
*/
123
private function writeApiDocsToFile(Collection $docs): bool
124
{
@@ -134,6 +134,6 @@ private function writeApiDocsToFile(Collection $docs): bool
134
mkdir($targetDirectory, 0755, true);
135
}
136
137
- return (bool)file_put_contents($this->exportFilePath, $content);
+ return file_put_contents($this->exportFilePath, $content) !== false;
138
139
0 commit comments