Skip to content

Commit

Permalink
Release file handle
Browse files Browse the repository at this point in the history
Need to close the file handle after writing.
  • Loading branch information
thinkingmedia committed May 2, 2016
1 parent b87b73c commit 13c62df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Console/Shell.php
Expand Up @@ -808,6 +808,7 @@ public function createFile($path, $contents)
$File = new File($path, true);
if ($File->exists() && $File->writable()) {
$File->write($contents);
$File->close();
$this->_io->out(sprintf('<success>Wrote</success> `%s`', $path));
return true;
}
Expand Down

0 comments on commit 13c62df

Please sign in to comment.