From 9a6315da9d0db1b796fb4f78bbd96a66419d461d Mon Sep 17 00:00:00 2001 From: Bastian Lederer Date: Thu, 2 Apr 2026 09:59:01 +0200 Subject: [PATCH] Add forward compatible return types Add bool return type to `isValidEvent()` of `PerfDataConsumerForm` and `VCenterShipMetricsForm` to ensure forward compatibility with ipl-html and ipl-stdlib --- library/Vspheredb/Web/Form/PerfdataConsumerForm.php | 2 +- library/Vspheredb/Web/Form/VCenterShipMetricsForm.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Vspheredb/Web/Form/PerfdataConsumerForm.php b/library/Vspheredb/Web/Form/PerfdataConsumerForm.php index 06c18679..0fbca0d3 100644 --- a/library/Vspheredb/Web/Form/PerfdataConsumerForm.php +++ b/library/Vspheredb/Web/Form/PerfdataConsumerForm.php @@ -56,7 +56,7 @@ public function assemble() $this->addButtons(isset($implementation), 'implementation'); } - public function isValidEvent($event) + public function isValidEvent($event): bool { if ($event === self::ON_DELETE) { return true; diff --git a/library/Vspheredb/Web/Form/VCenterShipMetricsForm.php b/library/Vspheredb/Web/Form/VCenterShipMetricsForm.php index a4a7f8c7..042f7ad3 100644 --- a/library/Vspheredb/Web/Form/VCenterShipMetricsForm.php +++ b/library/Vspheredb/Web/Form/VCenterShipMetricsForm.php @@ -121,7 +121,7 @@ protected function addConsumerConfig($consumer) } } - public function isValidEvent($event) + public function isValidEvent($event): bool { if ($event === self::ON_DELETE) { return true;