Comments (7)
I am stunned at the level of arrogance from the doctrine team that considers removing a PHP major version not to be a BC break. But lesson learned. In future we should all pin to a feature version instead of allowing our systems to benefit from new features by pinning on the major version. Quite staggering.
However, for others that can't get to grips with the disappearance of PHP 5.X support in doctrine/instantiator V1.1.0, a simple fix is to put
"doctrine/instantiator": "1.0.5"
in your require-dev section. Phpunit, V 4* which uses it, will happily start working again.
from instantiator.
Hi,
following tests on my side, and instead of setup a static "doctrine/instantiator" version's. I finally setup a target platform php version by adding a config::platform
section to the composer.json
, cf. example under (doc).
"config": {
"platform": {
"php": "5.6.32"
}
},
After composer update
, doctrine/instantiator
version (in composer.lock
) is resolved to:
"name": "doctrine/instantiator",
"version": "1.0.5",
my 2 cents.
from instantiator.
I had that problem too. Here's what happened to. On a fresh Macbook Pro, High Sierra comes with php7, I configure Laravel and updated composer with php7. And then I switched to php5.6.31, which was incompatible with installed version of doctrine/instantiator.
I re run composer update and then it downgraded the doctrine dependencies and it works:
`- Updating mtdowling/cron-expression (v1.2.0 => v1.2.1): Loading from cache
- Updating symfony/polyfill-util (v1.5.0 => v1.6.0): Downloading (100%)
- Updating symfony/polyfill-php56 (v1.5.0 => v1.6.0): Downloading (100%)
- Updating doctrine/inflector (v1.2.0 => v1.1.0): Downloading (100%)
- Updating artesaos/seotools (dev-master => 0.10.0): Downloading (100%)
- Updating doctrine/collections (v1.5.0 => v1.4.0): Downloading (100%)
- Updating doctrine/cache (v1.7.1 => v1.6.2): Downloading (100%)
- Updating doctrine/annotations (v1.5.0 => v1.4.0): Downloading (100%)
- Updating doctrine/common (v2.8.1 => v2.7.3): Downloading (100%)
- Updating doctrine/dbal (v2.6.2 => v2.5.13): Downloading (100%)
- Updating jaybizzle/crawler-detect (v1.2.52 => v1.2.54): Downloading (100%)
- Updating pragmarx/support (v0.8.3 => v0.8.5): Downloading (100%)
- Updating doctrine/instantiator (1.1.0 => 1.0.5): Downloading (100%)
- Updating maxmind-db/reader (v1.1.3 => v1.2.0): Downloading (100%)
- Updating phpdocumentor/type-resolver (0.4.0 => 0.3.0): Downloading (100%)
- Updating phpdocumentor/reflection-docblock (4.1.1 => 3.2.2): Downloading (100%)`
from instantiator.
See http://doctrine-project.org/2017/07/25/php-7.1-requirement-and-composer.html. Run composer update
on PHP 5.x and you'll get a compatible version. Closing as invalid
.
from instantiator.
While that works, it's a bit ugly to have to do an update
immediately after an install
.
from instantiator.
If your install
is broken, then that's just because the locked dependency set is not compatible with your PHP version, and they shouldn't be locked to that set in first place
from instantiator.
You can put ^1.0.0
and let the SAT deal with it. There is nothing breaking here, except what was already widely explained above and in the linked article.
If you run composer update
and composer install
on incompatible systems, or if you prepare deployment packages on a system that is incompatible with your production environment, you will get into trouble anyway.
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
- 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
- Requirement of PHP7.1 breaking other packages 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.