PHP 8 Compatibility Issue

Created on 22 April 2021, almost 4 years ago
Updated 23 March 2025, 14 days ago

Problem/Motivation

In PHP 8, the errcontext parameter is removed from the handler defined in set_error_handler.

This causes error_page to throw an error when defining the handleError method.

Steps to reproduce

Add set_error_handler(['Drupal\error_page\ErrorPageErrorHandler', 'handleError']); in settings.php

Run with PHP 8

Proposed resolution

Change array $context to array $context = [] in the method handleError.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States deweller

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024