logoalt Hacker News

nticompass • today at 12:50 PM • 2 replies • view on HN

I /finally/ just upgraded our PHP app from 7.4 to 8.3 (totally not just because of the PHP vulnerabilities). I can't wait to jump to 8.5, so I can use the pipe (`|>`) operator.

I'd love to upgrade to 8.6 so I can use function partials!


Replies

noir_lord • today at 1:42 PM

`|>` without PFA frequently ends up with longer code and isn't pretty because of the need to handle the first arg not been the one you want via closures which works but isn't really any better than just nesting them, so if I where you upgrading I'd get to 8.6 first and then start using pipes since you get both parts in that release.

It was a smart decision to roll it out incrementally but it did create a weird gap there for a little bit but they did do it so kudos to the team.

asimovDev • today at 1:56 PM

a lot of stuff will require changes when jumping from 8.3 to 8.4 and above. Don't forget to use Rector[0] if you haven't already. Helped me tremendously when going 7.4 > 8.4

0 - https://getrector.com

➕ show 1 reply