diff --git a/src/QueryList.php b/src/QueryList.php index 7946840..7d69e3b 100644 --- a/src/QueryList.php +++ b/src/QueryList.php @@ -104,6 +104,15 @@ public static function config() * Destruction of resources */ public function destruct() + { + unset($this->query); + unset($this->kernel); + } + + /** + * Destroy all documents + */ + public static function destructDocuments() { phpQuery::$documents = []; }