Skip to content

Commit 1710460

Browse files
authored
Merge pull request #107 from agentsib/fix-processor-options-definition
Fix processorOptions configuration
2 parents 45a1e26 + d944ca4 commit 1710460

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Fixed
9+
- Fix `processorOptions` in yaml configuration
810

911
## 2.0.1 - 2018-01-31
1012
### Fixed

src/DependencyInjection/Configuration.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ public function getConfigTreeBuilder()
107107
->prototype('scalar')->end()
108108
->end()
109109
->arrayNode('processorOptions')
110-
->prototype('scalar')->end()
110+
->arrayPrototype()
111+
->prototype('scalar')->end()
112+
->end()
111113
->end()
112114
->end()
113115
->end();

test/DependencyInjection/SentryExtensionTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,12 @@ public function test_that_it_sets_all_sentry_options()
343343
'install_shutdown_handler' => false,
344344
'processors' => ['processor1', 'processor2'],
345345
'processorOptions' => [
346-
'processorOption1' => 'asasdf',
346+
'processor1' => [
347+
'processorOption1' => 'asasdf',
348+
],
349+
'processor2' => [
350+
'processorOption2' => 'asasdf',
351+
],
347352
],
348353
];
349354

0 commit comments

Comments
 (0)