-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔮 PHP 8.0 Upgrade Features/Notes #1992
Comments
https://php.watch/versions/8.0/str_starts_with-str_ends_with
|
Moved this comment to: #2147 For PHP 8 we're probably looking at January 2023... |
Named Arguments is added to the list as well: https://stitcher.io/blog/php-8-named-arguments setcookie(
name: 'test',
expires: time() + 60 * 60 * 2,
); |
In the meantime, testing can be performed on WP Taste: https://tastewp.com/ |
Here's my more specific guesstimates at PHP minimum version update dates: Once we bump to 7.2 and then 7.3, I'll update #2147 with the next guesstimate and then this issue with the one related to PHP 8 and so on. New guesstimate: #2147 (comment) |
Thinking sometime in 2023 for minimum version to 8.0... #2147 (comment) |
Noting locations to update
Edit: Be careful of some locations that are using strpos() to actually get the index (and not just detect if a string contains another string)! |
Usage statistics as of January 2024. https://stitcher.io/blog/php-version-stats-january-2024 I'm thinking the threshold for minimum v8 is when 7.4 goes under 5%. Edit: Here is the July 2024 data: https://stitcher.io/blog/php-version-stats-july-2024 PHP 7.4 is still at 10.2% so we'll wait until at least January 2025 to make a decision on when to pull the trigger on 8.0 minimum version for Nebula. If it drops another ~4% down to around ~6% usage that may be sufficient to bump it up. |
PHP Version Timeline: https://www.php.net/supported-versions.php
PHP Release Notes: https://php.watch/versions
PHP 8.0 Info & References
https://php.watch/versions/8.0
https://stitcher.io/blog/new-in-php-8
Projected Nebula Minimum Version Timeline
Notable Features related to Nebula in PHP 8.0
Launch window is around December 2020, but will be much longer before we can make use of these in Nebula.
str_contains()
str_starts_with()
andstr_ends_with()
Old:
New:
The text was updated successfully, but these errors were encountered: