Skip to content

Commit

Permalink
Merge pull request #338 from jolicode/min-guard-version-stacktrace
Browse files Browse the repository at this point in the history
Fix guard_min_version() stacktrace
  • Loading branch information
lyrixx committed Mar 21, 2024
2 parents c489fb7 + fb66a05 commit 89eb467
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/functions.php
Expand Up @@ -1092,7 +1092,7 @@ function guard_min_version(string $minVersion): void

$minVersion = u($minVersion)->ensureStart('v')->toString();
if (version_compare($currentVersion, $minVersion, '<')) {
throw new MinimumVersionRequirementNotMetException($minVersion, $currentVersion);
throw fix_exception(new MinimumVersionRequirementNotMetException($minVersion, $currentVersion));
}
}

Expand Down
@@ -1,5 +1,5 @@

In functions.php line XXXX:
In version-guard.php line 18:

This project requires Castor in version v999.0.0 or greater, you are using vX.Y.Z. Please consider upgrading.

Expand Down

0 comments on commit 89eb467

Please sign in to comment.