From 7c898ad339aea16f511edf9920e2f6a1d48f860d Mon Sep 17 00:00:00 2001 From: "Quintino A. G. Souza" Date: Wed, 4 Feb 2026 09:49:04 -0300 Subject: [PATCH] Fix ParentEntityHandler attribute to call parent constructor The Plugin base class requires the parent constructor to be called with the id and deriver parameters. This fixes a TypeError in HookCollectorPass during container compilation. Co-Authored-By: Claude Opus 4.5 --- src/Attribute/ParentEntityHandler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Attribute/ParentEntityHandler.php b/src/Attribute/ParentEntityHandler.php index 4aed5e0..c949498 100644 --- a/src/Attribute/ParentEntityHandler.php +++ b/src/Attribute/ParentEntityHandler.php @@ -61,6 +61,8 @@ class ParentEntityHandler extends Plugin { public readonly array $bundle_restrictions = [], public readonly int $weight = 0, public readonly ?string $deriver = NULL, - ) {} + ) { + parent::__construct($id, $deriver); + } }