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 2abdcd4 commit de4b630Copy full SHA for de4b630
app/code/Magento/ImportExport/Model/Export/Adapter/Csv.php
@@ -6,7 +6,6 @@
6
namespace Magento\ImportExport\Model\Export\Adapter;
7
8
use Magento\Framework\Exception\LocalizedException;
9
-use Magento\Framework\Filesystem;
10
use Magento\Framework\Filesystem\File\Write;
11
12
/**
@@ -42,6 +41,16 @@ class Csv extends AbstractAdapter
42
41
* Object destructor
43
*/
44
public function __destruct()
+ {
45
+ $this->destruct();
46
+ }
47
+
48
+ /**
49
+ * Clean cached values
50
+ *
51
+ * @return void
52
+ */
53
+ public function destruct()
54
{
55
if (is_object($this->_fileHandler)) {
56
$this->_fileHandler->close();
0 commit comments