Browse Source

updated data assignment based on @Seldaek suggestion

otternq 12 năm trước cách đây
mục cha
commit
1c3b7a6cdd
1 tập tin đã thay đổi với 2 bổ sung9 xóa
  1. 2 9
      src/Monolog/Processor/GitProcessor.php

+ 2 - 9
src/Monolog/Processor/GitProcessor.php

@@ -28,15 +28,8 @@ class GitProcessor
         $branch = self::getBranch();
         $commit = self::getCommit();
 
-        $record['extra'] = array_merge(
-            $record['extra'],
-            array(
-                'git' => array(
-                    'branch' => $branch,
-                    'commit' => $commit
-                ),
-            )
-        );
+        $record['extra']['git']['branch'] = $branch;
+        $record['extra']['git']['commit'] = $commit;
 
         return $record;
     }