diff --git a/tests/src/CommonTestCase.php b/tests/src/CommonTestCase.php
index 35abfb7a..97d2e182 100644
--- a/tests/src/CommonTestCase.php
+++ b/tests/src/CommonTestCase.php
@@ -64,7 +64,7 @@ class CommonTestCase extends TestCase
/** @var int $debugMode save state of GLPI debug mode */
private $debugMode = null;
- protected $str = null;
+ protected ?string $str = null;
protected function disableDebug()
{
@@ -115,7 +115,7 @@ protected function setupGLPIFramework(): void
return;
}
- protected function login($name, $password, $noauto = false)
+ protected function login(string $name, string $password, $noauto = false)
{
Session::start();
$auth = new Auth();
@@ -539,7 +539,7 @@ protected function isolateInEntity(): int
*
* @return mixed
*/
- protected function callPrivateMethod($instance, string $methodName, ...$args)
+ protected function callPrivateMethod($instance, string $methodName, mixed ...$args)
{
$method = new ReflectionMethod($instance, $methodName);
if (version_compare(PHP_VERSION, '8.1.0') < 0) {
diff --git a/tests/units/DataSource/CarbonIntensity/ElectricityMaps/ConfigTest.php b/tests/units/DataSource/CarbonIntensity/ElectricityMaps/ConfigTest.php
index da22ef07..034a2347 100644
--- a/tests/units/DataSource/CarbonIntensity/ElectricityMaps/ConfigTest.php
+++ b/tests/units/DataSource/CarbonIntensity/ElectricityMaps/ConfigTest.php
@@ -99,10 +99,6 @@ public function testConfigUpdate(array $input, array $expected)
/** @var array $CFG_GLPI */
global $CFG_GLPI;
- $CFG_GLPI['plugi:carbon']['lca_datasources'] = [
- Client::class,
- ];
-
$instance = new Config();
$result = $instance->configUpdate($input);
$this->assertEquals($expected, $result);
diff --git a/tests/units/DataSource/Lca/Boaviztapi/ConfigTest.php b/tests/units/DataSource/Lca/Boaviztapi/ConfigTest.php
index 7f5249e1..ef3a40b7 100644
--- a/tests/units/DataSource/Lca/Boaviztapi/ConfigTest.php
+++ b/tests/units/DataSource/Lca/Boaviztapi/ConfigTest.php
@@ -124,10 +124,6 @@ public function testConfigUpdate(array $input, array $expected)
/** @var array $CFG_GLPI */
global $CFG_GLPI;
- $CFG_GLPI['plugi:carbon']['lca_datasources'] = [
- Client::class,
- ];
-
$result = (new Config())->configUpdate($input);
$this->assertEquals($expected, $result);
}