Comments (7)
If you develop in a PHP 7 env but your production env is PHP 5 you should set Composer's platform
config to the PHP version of your prod system and Composer will only install versions of the libs compatible with it ;)
from functional-php.
That's a great suggestion (thank you!) but the fact isn't just that the package changed the dependency - version 1.2 makes use of PHP7 only features, which means it is not backwards compatible with version 1.0 (environments that can run 1.0 will never be upgraded to 1.2 - luckily thanks to composer, but the versioning itself should handle this properly, unless there is just no desire to follow the versioning convention).
If I pin version ~1.0 I should expect to receive features/bugfixes up to but excluding version 2.0.0 which I would expect to be incompatible.
I guess I don't understand the versioning scheme being used (why lock into 1.x like this?)
from functional-php.
Well, I'm not the author/maintainer of this package but I tend to agree regarding a major PHP version change.
However I just looked in the composer.json
and it says "php": ">=5.6.0"
for version 1.2 / master. In addition the travis builds seems to run fine with PHP 5.6 too and thus I'm not sure why you think that PHP 7 is required for the latest version?
Regarding the rise of the PHP minor version from 5.3 in v1.0 to 5.6 in v1.2 I think this is a valid change, even if PHP 5.6 supports more features and thus isn't fully backwards compatible, because PHP 5.3 is EOL'ed for quite some time now (even PHP 5.5 security support ends in less than a month) and should not be used anymore.
from functional-php.
Ah that was my mistake (my own use case happened to be PHP7 on one machine PHP 5.5.9 on the Ubuntu 14.04 LTS machine - I completely forgot about PHP 5.6).
Still, I think altering the minimum viable PHP version should warrant more than a minor version bump on this end.
from functional-php.
I have no plans so far to abandon 5.6 support. Closing for now.
from functional-php.
The issue was that you abandoned sub-5.6 support without doing a major version bump
from functional-php.
The real issue is using unsupported PHP versions ;)
from functional-php.
Related Issues (20)
- Flatten array performance HOT 6
- PHP 7? HOT 3
- functional shortcut for array_reduce? HOT 1
- Write docs for converge()
- Porper file comment instead of full license text HOT 1
- The opposite of `select_keys` HOT 2
- Support psalm HOT 10
- Let the default callback argument to function some, none, and every be the identity function HOT 4
- Support .phpstorm.meta
- pick should use array_key_exists instead of isset HOT 3
- Make these functions more expressive HOT 3
- Functions can no longer be called `match` on PHP 8
- [BUG] 1.14.0 breaks when opcache.preload is enabled HOT 1
- PHP 8 Support HOT 3
- Proposal: Add compact() HOT 3
- When will the php v8 be supported? HOT 3
- Use php-quickcheck for testing
- `take_left(sequence_linear(date('Y') - 3, 1), 3)` infinite loop
- Add iterable to the method definitions
- Tail Recursion does not work HOT 2
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 functional-php.