Drupal 11 error (related to deprecation)

Created on 22 March 2025, 24 days ago

Problem/Motivation

PHP Fatal error: Type of Drupal\cloudflare_worker_purge\Form\Cloudflare
WorkerPurgeForm::$typedConfigManager must be Drupal\Core\Config\TypedConfigManagerInterface (as in class Drupal\Core\Form\ConfigFormBase) in cloudflare_worker_purge/src/Form/CloudflareWorkerPurgeForm.php on line 14

Steps to reproduce

Install latest version of Drupal, add this module's purger via the purger UI, try to acess its configuration form in the modal.

The fix for this is essentially to remove backwards-compatibility within the construct function's parameters (one of the parameters cannot have NULL as the default value, which was in place for backwards-compatibility). So merging this PR (when it's submitted) likely should come with an increased minimum-compatibility.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ashrafabed

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024