PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, January 18, 2022

[FIXED] How can I avoid unbound version constraints in composer?

 January 18, 2022     composer-php, error-handling, symfony     No comments   

Issue

I made a composer diagnose and I get the Warning:

WARNING require.symfony/serializer-pack : unbound version constraints () should be avoided require.symfony/webpack-encore-pack : unbound version constraints () should be avoided

How can I fix this issue?


Solution

See here: https://getcomposer.org/doc/faqs/why-are-unbound-version-constraints-a-bad-idea.md

Just define a suitable version after the required package like

symfony/serializer-pack:^4.0

which will prevent choosing ANY (maybe bc breaking) version.



Answered By - Jim Panse
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing