Skip to content

Commit e29924f

Browse files
committed
lints
1 parent 33634c6 commit e29924f

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

src/DependencyInjection/SentryExtension.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ private function registerHttpClientTracingConfiguration(ContainerBuilder $contai
290290
}
291291

292292
/**
293-
* @param string[] $integrations
293+
* @param string[] $integrations
294294
* @param array<string, mixed> $config
295295
*
296296
* @return array<Reference|Definition>
@@ -322,12 +322,12 @@ private function configureRequestIntegration(array $integrations, bool $useDefau
322322

323323
/**
324324
* @param class-string<IntegrationInterface> $integrationClass
325-
* @param array<Reference|Definition> $integrations
325+
* @param array<Reference|Definition> $integrations
326326
*/
327327
private function isIntegrationEnabled(string $integrationClass, array $integrations): bool
328328
{
329329
foreach ($integrations as $integration) {
330-
if ($integration instanceof Reference && $integrationClass === (string)$integration) {
330+
if ($integration instanceof Reference && $integrationClass === (string) $integration) {
331331
return true;
332332
}
333333

tests/DependencyInjection/SentryExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ private function createContainerFromFixture(string $fixtureFile): ContainerBuild
491491

492492
/**
493493
* @param array<int, mixed> $methodCall
494-
* @param mixed[] $arguments
494+
* @param mixed[] $arguments
495495
*/
496496
private function assertDefinitionMethodCallAt(array $methodCall, string $method, array $arguments): void
497497
{
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace Sentry\SentryBundle\Tests\End2End\App\Callback;
46

57
use Sentry\Logs\Log;
68

79
class BeforeSendLogCallback
810
{
9-
1011
public function getCallback(): callable
1112
{
1213
return function (Log $log): ?Log {
13-
if ($log->getBody() === "before_send_log") {
14+
if ('before_send_log' === $log->getBody()) {
1415
return null;
1516
}
17+
1618
return $log;
1719
};
1820
}
19-
2021
}

tests/End2End/App/Controller/LoggingController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ public function loggingWithError()
4646

4747
public function beforeSendLog()
4848
{
49-
$this->logger->warning("warn 1");
50-
$this->logger->error("before_send_log");
51-
$this->logger->warning("warn 2");
49+
$this->logger->warning('warn 1');
50+
$this->logger->error('before_send_log');
51+
$this->logger->warning('warn 2');
5252

5353
return new Response();
5454
}

tests/End2End/LoggingEnd2EndTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testExceptionWithLogs(): void
5757
$this->assertCount(2, $logsEvent->getLogs());
5858
}
5959

60-
public function testBeforeSendLogCallback()
60+
public function testBeforeSendLogCallback(): void
6161
{
6262
$client = static::createClient(['debug' => false]);
6363

0 commit comments

Comments
 (0)