Skip to content

Commit bfda602

Browse files
committed
Turning logs writing problem from warning into an error
... and also making it smart enough to create the directory if it doesn't exist
1 parent 9bd70c7 commit bfda602

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Command/BuildDocsCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
133133
array_unshift($buildErrors, sprintf('Build errors from "%s"', date('Y-m-d h:i:s')));
134134
}
135135

136-
file_put_contents($logPath, implode("\n", $buildErrors));
136+
$filesystem = new Filesystem();
137+
$filesystem->dumpFile($logPath, implode("\n", $buildErrors));
137138
}
138139

139140
$metas = $builder->getMetas();

0 commit comments

Comments
 (0)