From 41b976ca64d37f2c58363dd70856e8cb61d69bae Mon Sep 17 00:00:00 2001 From: Martin Linzmayer Date: Thu, 8 Oct 2026 12:47:29 +0200 Subject: [PATCH 1/2] Prepare 4.34.0 --- CHANGELOG.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9eeea301..57716dd16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # CHANGELOG +## 4.34.0 + +The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.34.0. + +### Features + +- Add the `$includeChannel` argument to the Monolog `LogsHandler` to attach the Monolog channel as the `channel` attribute on Sentry logs. [(#2029)](https://github.com/getsentry/sentry-php/pull/2029) + + ```php + $logger->pushHandler(new \Sentry\Monolog\LogsHandler(LogLevel::info(), true, true)); + ``` + +### Bug Fixes + +- Always filter "remember me" cookies, such as Laravel's `remember_web_*` and Symfony's `REMEMBERME`, when collecting HTTP data. [(#2250)](https://github.com/getsentry/sentry-php/pull/2250) +- Collect cleared cookies with an empty value instead of `[Filtered]`. [(#2250)](https://github.com/getsentry/sentry-php/pull/2250) +- Replace invalid UTF-8 in collected HTTP bodies instead of filtering the whole body, and stop escaping non-ASCII characters. [(#2250)](https://github.com/getsentry/sentry-php/pull/2250) + +### Misc + +- Cache source code excerpts per event in `FrameContextifierIntegration` so duplicate frames don't read the same file again. [(#2163)](https://github.com/getsentry/sentry-php/pull/2163) + ## 4.33.2 The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.33.2. From 0475bed4a650f66dcdd1c9726a5836d674546310 Mon Sep 17 00:00:00 2001 From: Martin Linzmayer Date: Thu, 8 Oct 2026 12:56:11 +0200 Subject: [PATCH 2/2] fix --- phpstan-baseline.neon | 6 ------ 1 file changed, 6 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index b00a61e41..f1d50a504 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -192,12 +192,6 @@ parameters: count: 1 path: src/Monolog/LogsHandler.php - - - message: '#^Method Sentry\\Monolog\\LogsHandler\:\:compileAttributes\(\) should return array\ but returns array\\.$#' - identifier: return.type - count: 1 - path: src/Monolog/LogsHandler.php - - message: '#^Parameter \#1 \$level of static method Sentry\\Monolog\\LogsHandler\:\:getSentryLogLevelFromMonologLevel\(\) expects int, mixed given\.$#' identifier: argument.type