Fix CI (PHP8.4)

This commit is contained in:
Eric Espie
2026-04-23 08:47:07 +02:00
parent 467d2755ca
commit fc2cb86122

View File

@@ -1472,7 +1472,7 @@ abstract class ItopDataTestCase extends ItopTestCase
* @return string The unique login * @return string The unique login
* @throws \Exception * @throws \Exception
*/ */
protected function GivenUserInDB(string $sPassword, array $aProfiles, string $sLogin = null, string &$sUserId = null): string protected function GivenUserInDB(string $sPassword, array $aProfiles, ?string $sLogin = null, ?string &$sUserId = null): string
{ {
if (is_null($sLogin)) { if (is_null($sLogin)) {
$sLogin = 'demo_test_'.uniqid(__CLASS__, true); $sLogin = 'demo_test_'.uniqid(__CLASS__, true);