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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel version check failed with Laravel 10+ #264

Closed
tonci14 opened this issue Mar 11, 2023 · 1 comment
Closed

Laravel version check failed with Laravel 10+ #264

tonci14 opened this issue Mar 11, 2023 · 1 comment

Comments

@tonci14
Copy link

tonci14 commented Mar 11, 2023

UC:
php artisan test

NunoMaduro\Collision\Adapters\Laravel\Exceptions\RequirementsException

Running Collision ^5.0 artisan test command requires at least Laravel ^8.0.

Laravel version is declared like:
const VERSION = '10.3.1'

Check is running like this:
if ((int) \Illuminate\Foundation\Application::VERSION[0] < 8) { throw new RequirementsException('Running Collision ^5.0 artisan test command requires at least Laravel ^8.0.'); }

Working variant is:
if (((int) \Illuminate\Foundation\Application::VERSION) < 8) { throw new RequirementsException('Running Collision ^5.0 artisan test command requires at least Laravel ^8.0.'); }

@tonci14
Copy link
Author

tonci14 commented Mar 11, 2023

I used old version. after update it workin ok.

@tonci14 tonci14 closed this as completed Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant