Skip to content

Commit

Permalink
ImageStorageExtension: fix for Latte < 3 (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ozzrell authored Nov 15, 2023
1 parent 82e5b73 commit 03100c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DI/ImageStorageExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', '<')) {

Check failure on line 49 in src/DI/ImageStorageExtension.php

View workflow job for this annotation

GitHub Actions / Static analysis (7.4, ubuntu-latest)

If condition is always true.

Check failure on line 49 in src/DI/ImageStorageExtension.php

View workflow job for this annotation

GitHub Actions / Static analysis (7.4, ubuntu-latest)

If condition is always true.

Check failure on line 49 in src/DI/ImageStorageExtension.php

View workflow job for this annotation

GitHub Actions / Static analysis (7.4, ubuntu-latest)

If condition is always true.

Check failure on line 49 in src/DI/ImageStorageExtension.php

View workflow job for this annotation

GitHub Actions / Static analysis (7.4, ubuntu-latest)

If condition is always true.

Check failure on line 49 in src/DI/ImageStorageExtension.php

View workflow job for this annotation

GitHub Actions / Static analysis (7.4, ubuntu-latest)

If condition is always true.

Check failure on line 49 in src/DI/ImageStorageExtension.php

View workflow job for this annotation

GitHub Actions / Static analysis (7.4, ubuntu-latest)

If condition is always true.

Check failure on line 49 in src/DI/ImageStorageExtension.php

View workflow job for this annotation

GitHub Actions / Static analysis (7.4, ubuntu-latest)

If condition is always true.

Check failure on line 49 in src/DI/ImageStorageExtension.php

View workflow job for this annotation

GitHub Actions / Static analysis (7.4, ubuntu-latest)

If condition is always true.
$latteFactory->getResultDefinition()
->addSetup('Contributte\ImageStorage\Macros\Macros::install(?->getCompiler())', ['@self']);
} else {
Expand Down

0 comments on commit 03100c7

Please sign in to comment.