From 3c91fa84e3f837ae1e8de6ee5136af62ddb4d83a Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Mon, 13 May 2024 18:07:40 +0200 Subject: [PATCH] fix all places Signed-off-by: Simon L --- php/src/Auth/AuthManager.php | 2 +- php/src/Controller/DockerController.php | 2 +- php/src/Data/ConfigurationManager.php | 2 +- php/src/Docker/DockerActionManager.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/php/src/Auth/AuthManager.php b/php/src/Auth/AuthManager.php index 88bdab10..a4bc96b6 100644 --- a/php/src/Auth/AuthManager.php +++ b/php/src/Auth/AuthManager.php @@ -7,7 +7,7 @@ use AIO\Data\DataConst; use \DateTime; class AuthManager { - private const SESSION_KEY = 'aio_authenticated'; + private const string SESSION_KEY = 'aio_authenticated'; private ConfigurationManager $configurationManager; public function __construct(ConfigurationManager $configurationManager) { diff --git a/php/src/Controller/DockerController.php b/php/src/Controller/DockerController.php index 64285e05..6d55bc94 100644 --- a/php/src/Controller/DockerController.php +++ b/php/src/Controller/DockerController.php @@ -13,7 +13,7 @@ class DockerController { private DockerActionManager $dockerActionManager; private ContainerDefinitionFetcher $containerDefinitionFetcher; - private const TOP_CONTAINER = 'nextcloud-aio-apache'; + private const string TOP_CONTAINER = 'nextcloud-aio-apache'; private ConfigurationManager $configurationManager; public function __construct( diff --git a/php/src/Data/ConfigurationManager.php b/php/src/Data/ConfigurationManager.php index a4693330..69e9bc6e 100644 --- a/php/src/Data/ConfigurationManager.php +++ b/php/src/Data/ConfigurationManager.php @@ -305,7 +305,7 @@ class ConfigurationManager if (empty($dnsRecordIP)) { $record = dns_get_record($domain, DNS_AAAA); - if (!empty($record[0]['ipv6'])) { + if (isset($record[0]['ipv6']) && !empty($record[0]['ipv6'])) { $dnsRecordIP = $record[0]['ipv6']; } } diff --git a/php/src/Docker/DockerActionManager.php b/php/src/Docker/DockerActionManager.php index 5b65f4b0..4e56e5f0 100644 --- a/php/src/Docker/DockerActionManager.php +++ b/php/src/Docker/DockerActionManager.php @@ -19,7 +19,7 @@ use http\Env\Response; class DockerActionManager { - private const API_VERSION = 'v1.41'; + private const string API_VERSION = 'v1.41'; private \GuzzleHttp\Client $guzzleClient; private ConfigurationManager $configurationManager; private ContainerDefinitionFetcher $containerDefinitionFetcher;