Skip to content

Commit 0770f65

Browse files
committed
Fix processorOptions configuration
1 parent 32bc4f7 commit 0770f65

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
## 1.0.1 - 2017-12-04
1012
### Changed

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
@@ -340,7 +340,12 @@ public function test_that_it_sets_all_sentry_options()
340340
'install_shutdown_handler' => false,
341341
'processors' => ['processor1', 'processor2'],
342342
'processorOptions' => [
343-
'processorOption1' => 'asasdf',
343+
'processor1' => [
344+
'processorOption1' => 'asasdf',
345+
],
346+
'processor2' => [
347+
'processorOption2' => 'asasdf',
348+
],
344349
],
345350
];
346351

0 commit comments

Comments
 (0)