Skip to content

Commit

Permalink
Merge pull request #544 from rollbar/1.x-backport-gh543
Browse files Browse the repository at this point in the history
GH-543-backport-1.x: Add missing transformer config option
  • Loading branch information
bxsx authored Nov 8, 2021
2 parents 16f31ca + 6b6a1f7 commit 2f3e4e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ class Config
'minimum_level',
'verbose',
'verbose_logger',
'raise_on_error'
'raise_on_error',
'transformer',
);

private $accessToken;
Expand Down
9 changes: 5 additions & 4 deletions tests/DefaultsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,15 @@ public function testDefaultsForConfigOptions()
{
foreach (\Rollbar\Config::listOptions() as $option) {
if ($option == 'access_token' ||
$option == 'include_raw_request_body' ||
$option == 'log_payload_logger' ||
$option == 'logger' ||
$option == 'person' ||
$option == 'person_fn' ||
$option == 'scrub_whitelist' ||
$option == 'proxy' ||
$option == 'include_raw_request_body' ||
$option == 'verbose_logger' ||
$option == 'log_payload_logger') {
$option == 'scrub_whitelist' ||
$option == 'transformer' ||
$option == 'verbose_logger') {
continue;
} elseif ($option == 'base_api_url') {
$option = 'endpoint';
Expand Down

0 comments on commit 2f3e4e0

Please sign in to comment.