\Symfony\Component\EventDispatcher\Event is deprecated. Consider using \Civi\Core\Event\GenericHookEvent
I'm seeing this warning level notice in my logs recently (I'm on 5.64.4 now)
It also says:
For more information see https://docs.civicrm.org/dev/en/latest/hooks/usage/symfony/#events
I'm not great with Symfony stuff, is it really just as simple as
diff --git a/Civi/DataProcessor/Event/ConfigContainerBuilderEvent.php b/Civi/DataProcessor/Event/ConfigContainerBuilderEvent.php
index 63dcb51..6a7ef46 100644
--- a/Civi/DataProcessor/Event/ConfigContainerBuilderEvent.php
+++ b/Civi/DataProcessor/Event/ConfigContainerBuilderEvent.php
@@ -7,9 +7,9 @@
namespace Civi\DataProcessor\Event;
use Symfony\Component\DependencyInjection\ContainerBuilder;
-use Symfony\Component\EventDispatcher\Event;
+use Civi\Core\Event\GenericHookEvent;
-class ConfigContainerBuilderEvent extends Event {
+class ConfigContainerBuilderEvent extends GenericHookEvent {
const EVENT_NAME = 'DataProcessorConfigContainerBuilderEvent';
I applied this patch and ran the phpunit7 tests: all passed fine, so maybe this is all that's needed?