From 2c8c885f97a312c9205d938d079261e7136593fc Mon Sep 17 00:00:00 2001 From: Jannik Zschiesche Date: Tue, 25 Jun 2024 21:31:27 +0200 Subject: [PATCH] Add proper types for configurable bundle extension --- CHANGELOG.md | 7 +++++++ src/Bundle/ConfigurableBundleExtension.php | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14669eb..f119e86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +2.3.0 +===== + +* (feature) Add proper types for configurable bundle extension. +* (internal) Update CI. + + 2.2.0 ===== diff --git a/src/Bundle/ConfigurableBundleExtension.php b/src/Bundle/ConfigurableBundleExtension.php index 92ca58b..d4049b5 100644 --- a/src/Bundle/ConfigurableBundleExtension.php +++ b/src/Bundle/ConfigurableBundleExtension.php @@ -14,10 +14,11 @@ class ConfigurableBundleExtension extends BundleExtension { private ConfigurationInterface $config; - /** @var callable */ + /** @var callable(array, ContainerBuilder): void */ private $callback; /** + * @param callable(array, ContainerBuilder): void $callback */ public function __construct ( BundleInterface $bundle,