I couldn't find any issue about supporting PHP 7.4 in Drupal 8, so here's one.

From some research, there are several dependencies whose current version in HEAD are currently not compatible with PHP 7.4:

Then, beside dependencies, there is Drupal code that needs to be made compatible. #3081386: [META] Fully support PHP 7.4 in Drupal 7 has similar findings. See some:

  • RecursiveContextualValidator - Trying to access array offset on value of type int
  • Drupal\Core\Controller\ArgumentResolver\RawParameterValueResolver - Deprecated function: array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead
  • LanguageServiceProvider - Trying to access array offset on value of type bool
  • Drupal\Core\Render\Element - Trying to access array offset on value of type int
  • Array and string offset access syntax with curly braces is deprecated in /var/www/html/core/modules/views/src/Plugin/views/filter/StringFilter.php on line 344
  • Trying to access array offset on value of type null - /var/www/html/core/modules/views/src/Plugin/views/display/PathPluginBase.php:104
  • Array and string offset access syntax with curly braces is deprecated in /var/www/html/core/modules/rest/src/RequestHandler.php on line 333
CommentFileSizeAuthor
#5 3085735-5-DISCOVERY.patch135.66 KBmondrake

Comments

mondrake created an issue. See original summary.

mondrake’s picture

Issue summary: View changes
mondrake’s picture

mondrake’s picture

Issue summary: View changes
mondrake’s picture

StatusFileSize
new135.66 KB

A discovery patch I used for my analysis. It is built on top of #2631202: Doctrine no longer supports SimpleAnnotationReader, incorporate a solution into core, modified to support PHP 7.4 + uses composer to update dependencies + fixes some of the Drupal code issues.

With this I can get to 'only' approx 2000 test failures on the full test run, vs. 6000+ in HEAD.

mondrake’s picture

Issue summary: View changes

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

mondrake’s picture

Status: Active » Closed (duplicate)
Related issues: +#3086374: Make Drupal 8 & 9 compatible with PHP 7.4