(no title)
JD557 | 1 year ago
So you end up having to choose between stable libraries in the old style or experimental modern libraries.
While some features can be retrofitted to work with old code (e.g. Java 8's SAMs were smart a way for old libraries to support the new lambdas), in a lot of situations you'll have to wait years for the stable libraries to support the new features.
Having said that, it's nice to see PHP catching up. I haven't used it in a long time, but I like to check the changelog once in a while.
nolok|1 year ago
Nowaday you use composer so your versionning and compatibility is done for you, everything is made out of libraries instead of monolithic bloc, and no major libraries use anything below PHP 7.X
I don't think you can find any sort-of-major library that doesn't work on PHP 8, nor anything with any kind of serious usage that isn't working on PHP 7. That's sort of the point of PHP making sure backward compatibility remains.
And if you mean "but my code can't use the good stuff", actually nothing stops it, even the type system stictness is decided caller side, specifically to avoid the issue you mention.
some_furry|1 year ago
Can you name any PHP libraries that don't support the latest version, that you wanted to use, and held you back from upgrading?