I’m just curious, what if any issues did you guys have upgrading your stuff to PHP v8.0? Mine actually went smoother than anticipated, and just a few things.

Lots of str_replace() calls had an int or float as the second parameter, and I guess that’s a no-no in PHP 8.0. Had to type cast them to strings.

2. zip_open is now depreciated, and flipped that over to the ZipArchive OOP method.

3. Few occurences where when defining methods / functions, there were optional parameters before required parameters in the list, and I guess that’s a no-no in PHP 8.0. Unfortunately, some dependencies I use including even PhpAmqpLib do the same thing, so had to do a small work around for it.

That was it though, and went off smoother than I expected. Just curious, what was your guys’ experience?
None really, just some dependencies that don’t support PHP 8.0 yet but that hopefully won’t take long either 🙂 Especially loving constructor property promotion.
Members
Online

source