Skip to content

Commit

Permalink
Merge pull request #545 from rollbar/2.x-backport-gh543
Browse files Browse the repository at this point in the history
GH-543-backport-2.x: Add missing transformer config option
  • Loading branch information
bxsx committed Nov 8, 2021
2 parents 43be6b9 + 59ab53c commit 7f8a110
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 7f8a110

Please sign in to comment.