From ad94c7bcb7bc7236b107058c9fb531d870eb0ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 22 Dec 2022 11:22:49 +0100 Subject: [PATCH] DX: Fix CS and type hinting --- .../Widget/AddWidgetConfigurationTrait.php | 6 ++---- src/Bundle/ChillPersonBundle/Entity/Person.php | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Bundle/ChillMainBundle/DependencyInjection/Widget/AddWidgetConfigurationTrait.php b/src/Bundle/ChillMainBundle/DependencyInjection/Widget/AddWidgetConfigurationTrait.php index 468314159..ea2a66c13 100644 --- a/src/Bundle/ChillMainBundle/DependencyInjection/Widget/AddWidgetConfigurationTrait.php +++ b/src/Bundle/ChillMainBundle/DependencyInjection/Widget/AddWidgetConfigurationTrait.php @@ -136,11 +136,9 @@ trait AddWidgetConfigurationTrait /** * add configuration nodes for the widget at the given place. * - * @param type $place - * - * @return type + * @param string $place */ - protected function addWidgetsConfiguration($place, ContainerBuilder $containerBuilder) + protected function addWidgetsConfiguration(string $place, ContainerBuilder $containerBuilder) { $treeBuilder = new TreeBuilder($place); $root = $treeBuilder->getRootNode($place) diff --git a/src/Bundle/ChillPersonBundle/Entity/Person.php b/src/Bundle/ChillPersonBundle/Entity/Person.php index 3843a960f..4e2bd4e89 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Person.php +++ b/src/Bundle/ChillPersonBundle/Entity/Person.php @@ -1581,7 +1581,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI return $this; } - $this->centerHistory[] = new PersonCenterHistory($this, $center, $modification); + $this->centerHistory[] = new PersonCenterHistory($this, $center, $modification); return $this; }