Skip to content

Commit

Permalink
fixed undefined index: excludedKeys issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercd100 committed Apr 2, 2016
1 parent 5fc8922 commit 885a675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Recorder.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ protected function getStatusCode(Exception $e) {
* @return void
*/
protected function excludeKeys(array $data){
$keys = $this->config['excludeKeys'];
$keys = isset($this->config['excludeKeys']) ? $this->config['excludeKeys'] : [];
foreach ($data as $key => &$value) {
if(in_array($key,$keys)){
unset($data[$key]);
Expand Down

0 comments on commit 885a675

Please sign in to comment.