diff --git a/php/psalm-baseline.xml b/php/psalm-baseline.xml index 283b7a39..74ebbb77 100644 --- a/php/psalm-baseline.xml +++ b/php/psalm-baseline.xml @@ -1,3 +1,149 @@ - - \ No newline at end of file + + + + $args + $args + $args + $args + $request + $request + $request + $response + $response + $response + + + + + AddVolume + + + + + $args + + + $request->getParsedBody()['borg_backup_host_location'] + $request->getParsedBody()['domain'] + + + $request->getParsedBody()['borg_backup_host_location'] + $request->getParsedBody()['domain'] + + + $request->getParsedBody()['borg_backup_host_location'] + $request->getParsedBody()['domain'] + + + + + $args + $args + $args + $args + $args + $args + $args + + + PerformRecursiveContainerStart + PerformRecursiveContainerStop + StartDomaincheckContainer + StopDomaincheckContainer + + + $request->getParsedBody()['selected_restore_time'] + + + $container + + + $request->getParsedBody()['selected_restore_time'] + + + GetDependsOn + GetDependsOn + GetIdentifier + GetIdentifier + GetRunningState + + + + + $args + $args + $args + + + $request->getParsedBody()['password'] + + + $password + + + $request->getParsedBody()['password'] + + + + + $nextcloudContainer + $nextcloudContainer + + + + + $response + + + DoubleSafeBackupSecret + + + is_array($backupTimes) + + + + + IContainerState + + + $internalPort + + + ConnectContainerIdToNetwork + ConnectContainerToNetwork + ConnectMasterContainerToNetwork + CreateContainer + CreateVolumes + DeleteContainer + DisconnectContainerFromNetwork + PullContainer + StartContainer + StopContainer + isAnyUpdateAvailable + sendNotification + + + strpos($fullDigest, "@") + + + $apacheContainer + + + GetUpdateState + + + $container->GetInternalPorts() !== null + + + + + withStatus + + + + + $object + + + diff --git a/php/src/Data/ConfigurationManager.php b/php/src/Data/ConfigurationManager.php index 0aa90b1b..bfe5672a 100644 --- a/php/src/Data/ConfigurationManager.php +++ b/php/src/Data/ConfigurationManager.php @@ -151,7 +151,7 @@ class ConfigurationManager $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,'http://' . $domain . ':443'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); - $response = curl_exec($ch); + $response = (string)curl_exec($ch); # Get rid of trailing \n $response = str_replace("\n", "", $response);