Skip to content

Commit

Permalink
Merge pull request #30 from graze/fix-filter-processor-and-arrays
Browse files Browse the repository at this point in the history
Fix filter processor and arrays
  • Loading branch information
biggianteye authored Jun 22, 2018
2 parents 5859041 + 81109c3 commit 91cc36e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Graze/Monolog/Processor/FilterProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __invoke(array $record)
*/
protected function filterValue(&$value, $key)
{
if (in_array($key, $this->keys)) {
if (in_array($key, $this->keys, true)) {
$value = $this->replacement;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function testProcessorIgnoresArrays()

$this->assertEquals('YOU CAN\'T HANDLE THE TRUTH', $result['apples']);
$this->assertInternalType('array', $result['oranges']);
$this->assertEquals([1,2,3], $result['oranges']);
}

public function testProcessorWorksWithNullReplacementValue()
Expand Down

0 comments on commit 91cc36e

Please sign in to comment.