diff --git a/src/DI/ImageStorageExtension.php b/src/DI/ImageStorageExtension.php index 95f3239..c5b4ac8 100644 --- a/src/DI/ImageStorageExtension.php +++ b/src/DI/ImageStorageExtension.php @@ -46,7 +46,7 @@ public function beforeCompile(): void /** @var Nette\DI\Definitions\FactoryDefinition $latteFactory */ $latteFactory = $builder->getDefinition('latte.latteFactory'); assert($latteFactory instanceof Nette\DI\Definitions\FactoryDefinition); - if (version_compare(Latte\Engine::Version, '3', '<')) { + if (version_compare(Latte\Engine::VERSION, '3', '<')) { $latteFactory->getResultDefinition() ->addSetup('Contributte\ImageStorage\Macros\Macros::install(?->getCompiler())', ['@self']); } else {