Skip to content

Commit

Permalink
Remove obsolete tags option depreaction (#1588)
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric authored Sep 15, 2023
1 parent e39ed0e commit faec023
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
7 changes: 0 additions & 7 deletions src/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -977,13 +977,6 @@ private function configureOptions(OptionsResolver $resolver): void
$resolver->setAllowedValues('context_lines', \Closure::fromCallable([$this, 'validateContextLinesOption']));

$resolver->setNormalizer('dsn', \Closure::fromCallable([$this, 'normalizeDsnOption']));
$resolver->setNormalizer('tags', static function (SymfonyOptions $options, array $value): array {
if (!empty($value)) {
@trigger_error('The option "tags" is deprecated since version 3.2 and will be removed in 4.0. Either set the tags on the scope or on the event.', \E_USER_DEPRECATED);
}

return $value;
});

$resolver->setNormalizer('prefixes', function (SymfonyOptions $options, array $value) {
return array_map([$this, 'normalizeAbsolutePath'], $value);
Expand Down
4 changes: 0 additions & 4 deletions tests/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,6 @@ public static function captureExceptionWithEventHintDataProvider(): \Generator
*/
public function testCaptureEvent(array $options, Event $event, Event $expectedEvent): void
{
if (isset($options['tags'])) {
$this->expectDeprecation('The option "tags" is deprecated since version 3.2 and will be removed in 4.0. Either set the tags on the scope or on the event.');
}

$transport = $this->createMock(TransportInterface::class);
$transport->expects($this->once())
->method('send')
Expand Down

0 comments on commit faec023

Please sign in to comment.