Giter VIP home page Giter VIP logo

Comments (2)

mbabker avatar mbabker commented on August 15, 2024 1

If you use the --with-all-dependencies flag as the Composer message suggests, unless you've got a package that ONLY supports doctrine/lexer:>=3.0, you should be able to install the serializer and have the lexer package downgraded to 2.x.

Checking a Laravel project I have at work:

$ composer why doctrine/lexer
doctrine/annotations      2.0.1   requires doctrine/lexer (^2 || ^3)     
egulias/email-validator   4.0.1   requires doctrine/lexer (^2.0 || ^3.0) 
friendsofphp/php-cs-fixer v3.16.0 requires doctrine/lexer (^2 || ^3)

So, Laravel itself does NOT depend on the lexer.

Note, because of the lexer package's API redesign, either a combination of 1.x and 2.x or a combination of 2.x and 3.x can be supported, there isn't a sane way to support all 3 major versions.

from serializer.

Dropelikeit avatar Dropelikeit commented on August 15, 2024

Thank you very much for your quick reply. As you correctly described, the installation works with the --with-all-dependencies flag. Nevertheless, I thought I would create this ticket to point out that Laravel 10 no longer supports doctrine-lexer version 1 and the message appears when adding the JMS/Serializer in a newly deployed Laravel app.

from serializer.

Related Issues (20)

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.