Comments (4)
@elton182 Not sure if it is your use-case but there is another thing you might be interested in.
In composer.json you can use the platform option to specify which PHP version should composer use when resolving dependencies. This is useful in cases like having PHP 7.1 locally but PHP 7.0 on production server. Normally when you update composer would happily install versions that need 7.1 and the resulting composer.lock would be useless on your production server. However when you set platform to 7.0 composer will not use such versions even if you're using 7.1 when running composer update.
This is in fact the only good option when you need to resolve all cascade dependencies correctly for an out-dated project.
from instantiator.
Older versions still require whatever they require before. Itβs also perfectly possible to get older versions when using an old PHP version. See http://doctrine-project.org/2017/07/25/php-7.1-requirement-and-composer.html
from instantiator.
Perfect! I did not know that composer updates take into account the php version on my system.
from instantiator.
Thanks @enumag, that's exactly what I did! It's the same case, I have php7.1 locally and 7.0 on production.
from instantiator.
Related Issues (20)
- Extension HOT 2
- missing shebang in .travis.install.sh HOT 2
- Enable CI services HOT 1
- What about to add the capability to set properties with given set of values? HOT 9
- Unable to instanciate Symfony\Component\HttpFoundation\File\File HOT 7
- Verify compatibility with PHP 5.6.0 (stable, once released) HOT 3
- version 1.1.0 broke phpunit on PHP 5.4 ~ PHP 5.6 HOT 7
- Dependency problem HOT 4
- Strange fatal error in PHP 7.1 due to void return hint HOT 2
- Minimum PHP version change in minor is breaking dependents HOT 21
- PHP 7.1 in composer HOT 1
- doctrine/instantiator 1.0.1 requires php ~5.3 -> your PHP version (7.1.8) does not satisfy that HOT 4
- Can't instantiate final class extending ArrayIterator HOT 18
- ext requirements HOT 1
- version 1.1.0 is breaking PHP < 7.1 HOT 4
- Add documentation
- Add in the README the meaning HOT 7
- Instantiator attempts to clone classes that are not cloneable HOT 6
- Promoted property causing Error HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instantiator.