Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix guard_min_version() stacktrace #338

Merged
merged 1 commit into from Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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