File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
tests/DependencyInjection Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 77/** @var ContainerBuilder $container */
88$ container ->loadFromExtension ('sentry ' , [
99 '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 ),
1112 ],
1213]);
Original file line number Diff line number Diff line change 77 https://sentry.io/schema/dic/sentry-symfony https://sentry.io/schema/dic/sentry-symfony/sentry-1.0.xsd" >
88
99 <
sentry : config dsn =
" https://[email protected] /0" >
10- <sentry : options error-types =" E_ALL & ~(E_NOTICE|E_STRICT |E_DEPRECATED)" />
10+ <sentry : options error-types =" E_ALL & ~(E_NOTICE|2048 |E_DEPRECATED)" />
1111 </sentry : config >
1212</container >
Original file line number Diff line number Diff line change @@ -288,7 +288,8 @@ public function testErrorTypesOptionIsParsedFromStringToIntegerValue(): void
288288 $ container = $ this ->createContainerFromFixture ('error_types ' );
289289 $ optionsDefinition = $ container ->getDefinition ('sentry.client.options ' );
290290
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 ' ]);
292293 }
293294
294295 /**
You can’t perform that action at this time.
0 commit comments