filipsuk / eventigo-web

Events aggregator and newsletter
https://eventigo.cz
21 stars 1 forks source link

fix nette/utils version to 2.4.9 #32

Open filipsuk opened 6 years ago

filipsuk commented 6 years ago

I was redeploying the app and after composer update the app stopped working (I couldn't send the newsletter) because of a deprecation error about Nette\Object (see forum). It is used in kdyby/facebook and drahak/restful libraries. Fixes are still not merged.

So I had to downgrade the nette/utils lib to 2.4.9 to avoid the error and send the newsletter.

Any other ideas guys? @jakubzaba @TomasVotruba

TomasVotruba commented 6 years ago

Hey Filip, welcome to vendor lock hell :)

Instead of checking every package for PHP 7.2 support, you could use config > platform option in composer.json: https://getcomposer.org/doc/06-config.md#platform and set it to PHP 7.1.

That way, it should only install PHP 7.1 compatible dependencies for every package. I never tried this in practice, but it might be useful.