From e57e44b672abb5ee72b95a58145f77a1723cc20c Mon Sep 17 00:00:00 2001 From: Dawid 'DeyV' Polak Date: Mon, 12 Jan 2026 13:33:19 +0100 Subject: [PATCH 1/2] Update functions.php Correct type for transport w init:: $options --- src/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.php b/src/functions.php index af967c8f9..6ffce2b85 100644 --- a/src/functions.php +++ b/src/functions.php @@ -65,7 +65,7 @@ * trace_propagation_targets?: array|null, * traces_sample_rate?: float|int|null, * traces_sampler?: callable|null, - * transport?: callable, + * transport?: TransportInterface|null, * } $options The client options */ function init(array $options = []): void From 638388b3bef3e9b1fb365e95b9924224850b8e36 Mon Sep 17 00:00:00 2001 From: Dawid 'DeyV' Polak Date: Mon, 12 Jan 2026 13:42:10 +0100 Subject: [PATCH 2/2] misiing import --- src/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/functions.php b/src/functions.php index 6ffce2b85..e5ae3b4fb 100644 --- a/src/functions.php +++ b/src/functions.php @@ -15,6 +15,7 @@ use Sentry\Tracing\SpanContext; use Sentry\Tracing\Transaction; use Sentry\Tracing\TransactionContext; +use Sentry\Transport\TransportInterface; /** * Creates a new Client and Hub which will be set as current.