Przeglądaj źródła

Make use of 'extra'

Follow guidelines by using the 'extra' key from record
Rvanlaak 11 lat temu
rodzic
commit
82c040ec12
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/Monolog/Handler/PushoverHandler.php

+ 2 - 2
src/Monolog/Handler/PushoverHandler.php

@@ -101,8 +101,8 @@ class PushoverHandler extends SocketHandler
             $dataArray['priority'] = 1;
             $dataArray['priority'] = 1;
         }
         }
         
         
-        if (isset($record['sound']) && in_array($record['sound'], $this->sounds)) {
-            $dataArray['sound'] = $record['sound'];
+        if (isset($record['extra']['sound']) && in_array($record['extra']['sound'], $this->sounds)) {
+            $dataArray['sound'] = $record['extra']['sound'];
         }
         }
 
 
         return http_build_query($dataArray);
         return http_build_query($dataArray);