Skip to content

Commit

Permalink
Fix issue with options.error_types discovered in #72
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 committed Aug 24, 2017
1 parent 5fe98b5 commit b80a9e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## 0.8.6 - 2017-08-24
### Fixed
- Fix expected type of the `options.error_types` config value (scalar instead of array, discovered in #72)

## 0.8.5 - 2017-08-22
### Fixed
- `trim()` DSN value from config, to avoid issues with .env files on BitBucket (see https://github.com/getsentry/sentry-symfony/pull/21#issuecomment-323673938)
Expand Down
4 changes: 2 additions & 2 deletions src/Sentry/SentryBundle/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ public function getConfigTreeBuilder()
->scalarNode('curl_ssl_version')->defaultNull()->end()
->scalarNode('trust_x_forwarded_proto')->defaultFalse()->end()
->scalarNode('mb_detect_order')->defaultNull()->end()
->arrayNode('error_types')
->prototype('scalar')->end()
->scalarNode('error_types')
->defaultNull()
->end()
->scalarNode('app_path')->defaultValue('%kernel.root_dir%/..')->end()
->arrayNode('excluded_app_paths')
Expand Down
2 changes: 1 addition & 1 deletion test/DependencyInjection/SentryExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ public function test_that_it_sets_all_options()
'curl_ssl_version' => 'curl_ssl_version',
'trust_x_forwarded_proto' => true,
'mb_detect_order' => 'mb_detect_order',
'error_types' => array('error_types1' => 'error_types1'),
'error_types' => 'E_ALL & ~E_DEPRECATED & ~E_NOTICE',
'app_path' => 'app_path',
'excluded_app_paths' => array('excluded_app_path1', 'excluded_app_path2'),
'prefixes' => array('prefix1', 'prefix2'),
Expand Down

0 comments on commit b80a9e7

Please sign in to comment.