Remove Symfony 4 compatibility layer

Created on 27 June 2024, 2 months ago
Updated 13 July 2024, about 2 months ago

Years ago, because of Symfony Event class deprecated, EventDispatcher::dispatch() argument order changed β†’ , we had to put in conditional code to simultaneously support both Symfony 4 (used by Drupal 9) and Symfony 5&6 (used by Drupal 10).

Explained in detail in #3259445-4: Symfony\Component\EventDispatcher\Event is deprecated in drupal:9.1.0 β†’ and also #3257308: Symfony Event class deprecated β†’

But now in Rules 4.0.x, we've dropped support for Drupal 9, so this conditional code is no longer required. And it generates warnings from phpstan.

This issue is to remove that code.

πŸ“Œ Task
Status

Fixed

Version

4.0

Component

Events

Created by

πŸ‡ΊπŸ‡ΈUnited States TR Cascadia

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