Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Aug 17, 2024
1 parent 6faa507 commit 64da364
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Environment/StubbedEnvironment.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ public function __construct(
*/
public static function satisfiesTwigVersion(int $major, int $minor = 0, int $patch = 0): bool
{
return $major + 1 >= self::MAJOR_VERSION
&& $minor >= self::MINOR_VERSION
&& $patch >= self::RELEASE_VERSION;
return $major + 1 <= self::MAJOR_VERSION
&& $minor <= self::MINOR_VERSION
&& $patch <= self::RELEASE_VERSION;
}

/**
Expand Down

0 comments on commit 64da364

Please sign in to comment.