Skip to content

Commit

Permalink
[TASK] Added typecasts for TYPO3 HTTP options
Browse files Browse the repository at this point in the history
  • Loading branch information
derhansen committed Apr 22, 2024
1 parent 2ac0697 commit c1ee17e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Service/SentryService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c1ee17e

Please sign in to comment.