Daniel F Posted October 26, 2022 Posted October 26, 2022 Is anybody else excited about finally being able to use all the "new" PHP8.0 features? You've probably seen some of the new stuff in our recent Beta:) // Union Types protected function sendModerationAlert( array $values, \IPS\Content\Item|\IPS\Content\Comment $content ) : \IPS\core\Alerts\Alert // Nullsafe Operator $this->coverPhotoFile()?->delete(); 2 other amazing changes are named arguments and match expressions which we haven't used yet in the core products, but I'm sure they'll come up soon because they're going to make all our all lives much easier!  If you haven't looked at the changes in PHP8 yet, I would strongly suggest to take a look at https://stitcher.io/blog/new-in-php-8 which is an amazing blog covering all the new features. And that's just the beginning, I would strongly suggest to make yourself also familiar with PHP8.1 https://stitcher.io/blog/new-in-php-81 & PHP 8.2 https://stitcher.io/blog/new-in-php-82 because PHP8.0 is reaching it's EOL soon  https://www.php.net/supported-versions.php   Ryan Ashbrook, The Old Man and IPCommerceFan 2 1
Randy Calvert Posted October 26, 2022 Posted October 26, 2022 3 minutes ago, Daniel F said: And that's just the beginning, I would strongly suggest to make yourself also familiar with PHP8.1 https://stitcher.io/blog/new-in-php-81 & PHP 8.2 https://stitcher.io/blog/new-in-php-82 because PHP8.0 is reaching it's EOL soon  https://www.php.net/supported-versions.php This feels like when I pay the mortgage...  I literally just get done paying it and a week later I get an email saying the next payment is due soon!
All Astronauts Posted October 26, 2022 Posted October 26, 2022 Technically speaking, as MP devs, we cannot until 4.8 Unless that is you add the third point to the marketplace version flags. As it stands, a Marketplace 4.7 flag means PHP 7.4 and PHP 8. If we start throwing in PHP 8 specific stuff in our apps and people are hanging back on 4.7.2 or less it's going to be a bad time for a lot of people. I imagine the support discussions will go something like this: Give us a 4.7.3+ flag and the Spidermen go away. Or don't and we laze about in the land of PHP 7.4 until Invision Community 4.8 comes along. Martin A., SeNioR- and Richard Arch 2 1
Recommended Posts