Jump to content

PHP 8.0🎉


Recommended Posts

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

 

 

Link to comment
Share on other sites

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!

Tom Cruise GIF by Jerology

Link to comment
Share on other sites

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:

spiderman-meme.thumb.webp.5cb22f93406fd77ab207b3e0eabd223d.webp

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.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...