Coder Social home page Coder Social logo

Comments (7)

stof avatar stof commented on July 17, 2024 2

The issue is that you use PHPUnit 10, which is not supported yet. Work for that is in progress (but I won't manage to complete it before my vacation week that starts tomorrow so you'll need to wait a but).
Stick to PHPUnit 9.x for now.

from prophecy-phpunit.

jdreesen avatar jdreesen commented on July 17, 2024

Why is it trying to install phpspec/prophecy v1.15.0? There's v1.16.0, which is compatible to PHP 8.2.

What was the exact command you used?
Does it help to add -W (--update-with-all-dependencies)

If that doesn't help, what does composer why phpspec/prophecy say?

from prophecy-phpunit.

briaznar avatar briaznar commented on July 17, 2024

Problem 1
- phpspec/prophecy-phpunit v2.0.0 requires php ^7.3 -> your php version (8.1.12) does not satisfy that requirement.
- phpspec/prophecy-phpunit v2.0.1 requires phpunit/phpunit ^9.1 -> found phpunit/phpunit[9.1.0, ..., 9.6.4] but it conflicts with your root composer.json require (^10.0).
- Root composer.json requires phpspec/prophecy-phpunit ^2.0 -> satisfiable by phpspec/prophecy-phpunit[v2.0.0, v2.0.1].

Similar problem here with PHP 8.1

from prophecy-phpunit.

TheLevti avatar TheLevti commented on July 17, 2024

Any update on this?

from prophecy-phpunit.

davidrans avatar davidrans commented on July 17, 2024

Looks like PHPUnit 10 support has been added on master. Any chance we could get a new release soon?

from prophecy-phpunit.

TheLevti avatar TheLevti commented on July 17, 2024

Master is broken as well as it requires a version of phpspec/prophecy that does not exist yet. Had to fork it out and fix master and then use dev-master until maintainer does a proper release.

from prophecy-phpunit.

stof avatar stof commented on July 17, 2024

@TheLevti you don't need to require dev-master. prophecy has a branch alias so its dev-master version fulfills the existing requirement.
However, when you want to use the dev version, you indeed have to allow composer to use the dev version of prophecy.

from prophecy-phpunit.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.