From ba9ab7025c817446770efd93211f5f0ab231c5b1 Mon Sep 17 00:00:00 2001 From: Libor M Date: Thu, 19 Mar 2020 16:26:07 +0100 Subject: [PATCH] fix plugin destruct --- src/Plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plugin.php b/src/Plugin.php index e40c12d..012cc35 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -55,7 +55,7 @@ class Plugin implements PluginInterface, EventSubscriberInterface public function __destruct() { - if (!$this->cleaner && !$this->isCleaningFinished) { + if ($this->cleaner && !$this->isCleaningFinished) { $this->cleaner->finishCleanup(); } }