Change default PHP version to PHP 8.2+ for Varbase development and automated testing

Created on 26 November 2023, about 1 year ago
Updated 16 April 2024, 8 months ago

Problem/Motivation

PHP 8.3 Released!

https://thephp.foundation/blog/2023/11/23/php-83/
https://www.php.net/ChangeLog-8.php#8.3.0
https://www.php.net/releases/8.3/en.php

PHP 8.0 is now End-Of-Life

The upgrade guides for newer versions can be found here:
- 8.0 > 8.1: https://www.php.net/migration81
- 8.1 > 8.2: https://www.php.net/migration82
- 8.2 > 8.3: https://www.php.net/migration83

Supported PHP Versions

Proposed resolution

Varbase 9/10 had been switched to PHP 8.1 for quite long time.
#3217859: Support PHP8.1 and MySQL 8 for Varbase ~9.0 and all used components with automated testing

The right action for now is to migrate PHP 8.1 to 8.2

  • Switch default Varbase development env. ( local, lando, and platform.sh templates) to PHP 8.2
  • Switch default automated functional testing to PHP 8.2

✅ Released layout_builder_blocks-1.1.1

  • Issue #3408505 : Fixed PHP 8.2 Real-time SEO issue of Deprecated function: Creation of dynamic property

✅ Released varbase_seo-9.0.18
✅ Released varbase_seo-9.1.2
✅ Released varbase_seo-10.0.2

  • Issue #3408378 : Fixed PHP 8.2 Display Suite Deprecated function: Creation of dynamic property
  • Issue #3408371 : Fixed PHP 8.2 Ultimate Cron deprecation issue with CronRule-class

✅ Released varbase_core-9.0.81
✅ Released varbase_core-9.1.16
✅ Released varbase_core-10.0.5

  • Issue #3408486 : Fixed PHP 8.2 CKEditor Media Embed Plugin issue of Deprecated function: Creation of dynamic property

✅ Released varbase_editor-9.1.6
✅ Released varbase_editor-9.0.19

✅ Released google_analytics_reports-8.x-3.1
✅ Released google_analytics_reports-4.0.0-beta1

  • Issue #3408369 : Opened requirements for Blazy, Slick, Slick Views to ~2

✅ Released varbase_media-9.0.40
✅ Released varbase_media-9.1.4
✅ Released varbase_media-10.0.0-beta12

  • Issue #3408876 : Fixed PHP 8.2 Deprecated function: Creation of dynamic property $renderer

✅ Released varbase_faqs-9.0.10
✅ Released varbase_faqs-9.1.2
✅ Released varbase_faqs-10.0.0-beta3

  • Issue #3408809 : Fixed PHP 8.2+ Drupal Core issues by resolving deprecated function occurrences involving the passing of null

✅ Released varbase_core-9.1.17
✅ Released varbase_core-10.0.6

  • Issue #3409310 : Fixed PHP 8.2 issues with Dashboards with Layout Builder and Drupal ~10.2.0 calling of a static method on a multilingual site

✅ Released varbase_dashboards-1.0.0-rc2

  • Issue #3411198 by Ahmad Khader : Fixed Deprecated function: Creation of dynamic property in VarbaseMediaHeaderBlock under PHP 8.2+

✅ Released varbase_media_header-9.0.10
✅ Released varbase_media_header-9.1.2
✅ Released varbase_media_header-10.0.0-beta4

  • Issue #3412276 : Fixed OpenAPI with PHP 8.2+ of Deprecated function: Creation of dynamic property

✅ Released varbase_api-10.0.3
✅ Released varbase_api-9.1.2
✅ Released varbase_api-9.0.14

  • Issue #3413168 : Fixed PHP Fatal error: Cannot redeclare varbase_media_requirements() previously declared when installed with Drush ~12 and PHP 8.3

✅ Released varbase_media-9.0.41
✅ Released varbase_media-9.1.5
✅ Released varbase_media-10.0.0-rc1

Remaining tasks

  • ✅ File an issue about this project
  • ✅ Addition/Change/Update/Fix to this project
  • ✅ Testing to ensure no regression
  • ✅ Automated unit/functional testing coverage
    • Varbase 10.0.x
    • Varbase 9.1.x
    • Varbase 9.0.x
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ✅ Code review from 1 Varbase core team member
  • ✅ Full testing and approval
  • ✅ Credit contributors
  • ✅ Review with the product owner
  • ✅ Update Release Notes and Update Helper on new feature change/addition
  • ✅ Release varbase-10.0.0-rc2 , varbase-9.0.18 , Varbase 9.1.1

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • Issue #3404221 : Changed default PHP version to PHP 8.2 for Varbase development and automated testing
📌 Task
Status

Fixed

Version

10.0

Component

Code

Created by

🇯🇴Jordan Rajab Natshah Jordan

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024