File tree 2 files changed +4
-2
lines changed
tests/DependencyInjection
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 7
7
/** @var ContainerBuilder $container */
8
8
$ container ->loadFromExtension ('sentry ' , [
9
9
'options ' => [
10
- 'error_types ' => \E_ALL & ~(\E_NOTICE | \E_STRICT | \E_DEPRECATED ),
10
+ // 2048 is \E_STRICT which has been deprecated in PHP 8.4 so we should not reference it directly to prevent deprecation notices
11
+ 'error_types ' => \E_ALL & ~(\E_NOTICE | 2048 | \E_DEPRECATED ),
11
12
],
12
13
]);
Original file line number Diff line number Diff line change @@ -288,7 +288,8 @@ public function testErrorTypesOptionIsParsedFromStringToIntegerValue(): void
288
288
$ container = $ this ->createContainerFromFixture ('error_types ' );
289
289
$ optionsDefinition = $ container ->getDefinition ('sentry.client.options ' );
290
290
291
- $ this ->assertSame (\E_ALL & ~(\E_NOTICE | \E_STRICT | \E_DEPRECATED ), $ optionsDefinition ->getArgument (0 )['error_types ' ]);
291
+ // 2048 is \E_STRICT which has been deprecated in PHP 8.4 so we should not reference it directly to prevent deprecation notices
292
+ $ this ->assertSame (\E_ALL & ~(\E_NOTICE | 2048 | \E_DEPRECATED ), $ optionsDefinition ->getArgument (0 )['error_types ' ]);
292
293
}
293
294
294
295
/**
You can’t perform that action at this time.
0 commit comments