From c1ee17e72275204fe0f84f5a2e11ffbb641d39be Mon Sep 17 00:00:00 2001 From: Torben Hansen Date: Mon, 22 Apr 2024 08:28:50 +0200 Subject: [PATCH] [TASK] Added typecasts for TYPO3 HTTP options --- Classes/Service/SentryService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/Service/SentryService.php b/Classes/Service/SentryService.php index f8f9e98..c794561 100644 --- a/Classes/Service/SentryService.php +++ b/Classes/Service/SentryService.php @@ -37,9 +37,9 @@ public static function inititalize(): bool 'environment' => ConfigurationService::getEnvironment(), 'in_app_include' => [Environment::getExtensionsPath()], 'http_proxy' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['proxy'] ?? null, - 'http_ssl_verify_peer' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['verify'] ?? true, - 'http_timeout' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['http_timeout'] ?? 5, - 'http_connect_timeout' => $GLOBALS['TYPO3_CONF_VARS']['HTTP']['connect_timeout'] ?? 2, + 'http_ssl_verify_peer' => (bool)($GLOBALS['TYPO3_CONF_VARS']['HTTP']['verify'] ?? true), + 'http_timeout' => (int)($GLOBALS['TYPO3_CONF_VARS']['HTTP']['http_timeout'] ?? 5), + 'http_connect_timeout' => (int)($GLOBALS['TYPO3_CONF_VARS']['HTTP']['connect_timeout'] ?? 2), 'attach_stacktrace' => true, 'before_send' => function (Event $event): Event { return SentryLogWriter::cleanupStacktrace($event);