From 8eef2e17b78914e3ed14a9946707ee29b5448b02 Mon Sep 17 00:00:00 2001 From: Jiri Hynek Date: Thu, 4 Jun 2020 09:42:32 +0200 Subject: [PATCH] cache can be Nette\DI\Definitions\Statement object --- src/DI/AnnotationsExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DI/AnnotationsExtension.php b/src/DI/AnnotationsExtension.php index f0ac5b9..3a14ab0 100644 --- a/src/DI/AnnotationsExtension.php +++ b/src/DI/AnnotationsExtension.php @@ -34,7 +34,7 @@ public function getConfigSchema(): Schema 'persistent', 'serializationVersion', ]), - 'cache' => Expect::string('default'), + 'cache' => Expect::mixed('default'), 'debug' => Expect::bool(interface_exists('Tracy\IBarPanel')), 'debugMode' => Expect::bool(interface_exists('Tracy\IBarPanel')), ])->castTo('array');