Skip to content

Commit 42b288f

Browse files
committed
Use call to getTempDir instead of direct property access to fix AdminGenerator tests
1 parent c3a4caa commit 42b288f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Builder/Generator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ public function setTemplateDirs(array $templateDirs): void
7474
*/
7575
public function __destruct()
7676
{
77-
if ($this->tempDir && is_dir($this->tempDir) && $this->autoRemoveTempDir) {
78-
$this->removeDir($this->tempDir);
77+
if ($this->getTempDir() && is_dir($this->getTempDir()) && $this->autoRemoveTempDir) {
78+
$this->removeDir($this->getTempDir());
7979
}
8080
}
8181

0 commit comments

Comments
 (0)