Composer update gives error phpunit/phpunit
P粉852578075
P粉852578075 2023-11-08 15:34:22
0
1
692

I recently installed php (8.1.7) and composer (2.3.7) and laravel 9; Now I am getting this error while running the commandcomposer UpdateIn a laravel project, I searched a lot but didn't find the exact solution, all of which did not discuss the issue of phpunit/phpunit.

The error looks like this:

Problem 1 - phpunit/phpunit[6.0.0, ..., 6.5.14] require php ^7.0 -> your php version (8.1.7) does not satisfy that requirement. - Root composer.json requires phpunit/phpunit ~6.0 -> satisfiable by phpunit/phpunit[6.0.0, ..., 6.5.14].```


P粉852578075
P粉852578075

reply all (1)
P粉638343995

You must upgrade yourphpunitversion to correspond with yourphp 8.1.7(Select phpunit version 9 or 8, depending onOfficial documentation) or downgrade your php version to work withphpunit 6.*.

That's it!

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!