Skip to content

Commit 0f97857

Browse files
committed
Fix CS (due to PHP-CS-Fixer 2.18)
1 parent ebc1193 commit 0f97857

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

tests/DependencyInjection/Fixtures/php/error_types.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
/** @var ContainerBuilder $container */
88
$container->loadFromExtension('sentry', [
99
'options' => [
10-
'error_types' => E_ALL & ~(E_NOTICE | E_STRICT | E_DEPRECATED),
10+
'error_types' => \E_ALL & ~(\E_NOTICE | \E_STRICT | \E_DEPRECATED),
1111
],
1212
]);

tests/DependencyInjection/Fixtures/php/full.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
'tags' => [
2727
'context' => 'development',
2828
],
29-
'error_types' => E_ALL,
29+
'error_types' => \E_ALL,
3030
'max_breadcrumbs' => 1,
3131
'before_breadcrumb' => 'App\Sentry\BeforeBreadcrumbCallback',
3232
'in_app_exclude' => ['%kernel.cache_dir%'],

tests/DependencyInjection/SentryExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function testClentIsCreatedFromOptions(): void
182182
'server_name' => 'localhost',
183183
'before_send' => new Reference('App\\Sentry\\BeforeSendCallback'),
184184
'tags' => ['context' => 'development'],
185-
'error_types' => E_ALL,
185+
'error_types' => \E_ALL,
186186
'max_breadcrumbs' => 1,
187187
'before_breadcrumb' => new Reference('App\\Sentry\\BeforeBreadcrumbCallback'),
188188
'in_app_exclude' => [$container->getParameter('kernel.cache_dir')],
@@ -237,7 +237,7 @@ public function testErrorTypesOptionIsParsedFromStringToIntegerValue(): void
237237
$container = $this->createContainerFromFixture('error_types');
238238
$optionsDefinition = $container->getDefinition('sentry.client.options');
239239

240-
$this->assertSame(E_ALL & ~(E_NOTICE | E_STRICT | E_DEPRECATED), $optionsDefinition->getArgument(0)['error_types']);
240+
$this->assertSame(\E_ALL & ~(\E_NOTICE | \E_STRICT | \E_DEPRECATED), $optionsDefinition->getArgument(0)['error_types']);
241241
}
242242

243243
public function testIgnoreErrorsIntegrationIsNotAddedTwiceIfAlreadyConfigured(): void

tests/End2End/App/Controller/MainController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function index(): Response
5555

5656
public function notice(): Response
5757
{
58-
@trigger_error('This is an intentional notice', E_USER_NOTICE);
58+
@trigger_error('This is an intentional notice', \E_USER_NOTICE);
5959

6060
return new Response('Hello there');
6161
}

tests/End2End/End2EndTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ private function assertEventCount(int $expectedCount): void
239239
$events = file_get_contents(self::SENT_EVENTS_LOG);
240240
$this->assertNotFalse($events, 'Cannot read sent events log');
241241
$listOfEvents = array_filter(explode(StubTransportFactory::SEPARATOR, trim($events)));
242-
$this->assertCount($expectedCount, $listOfEvents, 'Wrong number of events sent: ' . PHP_EOL . $events);
242+
$this->assertCount($expectedCount, $listOfEvents, 'Wrong number of events sent: ' . \PHP_EOL . $events);
243243
}
244244

245245
private function assertLastEventIdIsNull(KernelBrowser $client): void

tests/End2End/StubTransportFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public function send(Event $event): PromiseInterface
3434

3535
file_put_contents(
3636
End2EndTest::SENT_EVENTS_LOG,
37-
$event->getId() . ': ' . $message . PHP_EOL . StubTransportFactory::SEPARATOR . PHP_EOL,
38-
FILE_APPEND
37+
$event->getId() . ': ' . $message . \PHP_EOL . StubTransportFactory::SEPARATOR . \PHP_EOL,
38+
\FILE_APPEND
3939
);
4040

4141
return new FulfilledPromise(new Response(ResponseStatus::success(), $event));

tests/ErrorTypesParserTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@ public function parseDataProvider(): \Generator
2424
{
2525
yield [
2626
'E_ALL',
27-
E_ALL,
27+
\E_ALL,
2828
];
2929

3030
yield [
3131
'E_ERROR | E_WARNING | E_PARSE',
32-
E_ERROR | E_WARNING | E_PARSE,
32+
\E_ERROR | \E_WARNING | \E_PARSE,
3333
];
3434

3535
yield [
3636
'E_ALL & ~E_DEPRECATED & ~E_NOTICE',
37-
E_ALL & ~E_DEPRECATED & ~E_NOTICE,
37+
\E_ALL & ~\E_DEPRECATED & ~\E_NOTICE,
3838
];
3939

4040
yield [
4141
'E_ALL & ~(E_DEPRECATED|E_NOTICE)',
42-
E_ALL & ~(E_DEPRECATED | E_NOTICE),
42+
\E_ALL & ~(\E_DEPRECATED | \E_NOTICE),
4343
];
4444

4545
yield [

0 commit comments

Comments
 (0)