Skip to content

Commit

Permalink
Merge pull request #656 from tfrommen/patch-1
Browse files Browse the repository at this point in the history
Clear the _filesToCleanUp array after unlink.
  • Loading branch information
davedevelopment committed Dec 19, 2016
2 parents 65d4ca1 + 6110dc7 commit 4de7969
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/Mockery.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public static function close()
foreach (self::$_filesToCleanUp as $fileName) {
@unlink($fileName);
}
self::$_filesToCleanUp = array();

if (is_null(self::$_container)) {
return;
Expand Down

3 comments on commit 4de7969

@sakarikl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi

Is there any plan on creating new release on the 0.9 branch to get this fix from packagist?

@davedevelopment
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sakarikl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks :)

Please sign in to comment.