diff --git a/d3DicHandler.php b/d3DicHandler.php index e961abc..37c2706 100644 --- a/d3DicHandler.php +++ b/d3DicHandler.php @@ -165,7 +165,7 @@ class d3DicHandler implements d3DicHandlerInterface $config = $this->d3GetConfig(); return $config->isProductiveMode() - && !$config->getConfigParam('iDebug') +// && !$config->getConfigParam('iDebug') && $this->cacheFileExists(); } diff --git a/tests/unit/d3DicHandlerTest.php b/tests/unit/d3DicHandlerTest.php index 04819fa..bad4a42 100644 --- a/tests/unit/d3DicHandlerTest.php +++ b/tests/unit/d3DicHandlerTest.php @@ -421,7 +421,7 @@ class d3DicHandlerTest extends TestCase public function canUseCachedContainerDataProvider(): Generator { yield "not productive" => [false, 0, true, false]; - yield 'is debug' => [true, 1, true, false]; + yield 'is debug' => [true, 1, true, true]; yield 'no cache file' => [true, 0, false, false]; yield 'can use cached' => [true, 0, true, true]; }