From d8645dda6a98776e9d9c33f2d42d628a2e366bbd Mon Sep 17 00:00:00 2001 From: Alex Bouma Date: Thu, 5 Dec 2024 13:45:35 +0100 Subject: [PATCH] CS --- phpstan-baseline.neon | 7 ++++++- tests/DependencyInjection/SentryExtensionTest.php | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index be7174a9..05d41ff0 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -70,6 +70,11 @@ parameters: count: 2 path: src/DependencyInjection/SentryExtension.php + - + message: "#^Cannot access offset 'logger' on mixed\\.$#" + count: 1 + path: src/DependencyInjection/SentryExtension.php + - message: "#^Cannot access offset 'traces_sampler' on mixed\\.$#" count: 1 @@ -92,7 +97,7 @@ parameters: - message: "#^Parameter \\#1 \\$id of class Symfony\\\\Component\\\\DependencyInjection\\\\Reference constructor expects string, mixed given\\.$#" - count: 9 + count: 10 path: src/DependencyInjection/SentryExtension.php - diff --git a/tests/DependencyInjection/SentryExtensionTest.php b/tests/DependencyInjection/SentryExtensionTest.php index da077567..232f0887 100644 --- a/tests/DependencyInjection/SentryExtensionTest.php +++ b/tests/DependencyInjection/SentryExtensionTest.php @@ -4,12 +4,12 @@ namespace Sentry\SentryBundle\Tests\DependencyInjection; -use Sentry\Logger\DebugStdOutLogger; use Doctrine\Bundle\DoctrineBundle\DoctrineBundle; use Jean85\PrettyVersions; use PHPUnit\Framework\TestCase; use Psr\Log\NullLogger; use Sentry\ClientInterface; +use Sentry\Logger\DebugStdOutLogger; use Sentry\Options; use Sentry\SentryBundle\DependencyInjection\SentryExtension; use Sentry\SentryBundle\EventListener\ConsoleListener;