Просмотр исходного кода

Make use of 'extra'

Follow guidelines by using the 'extra' key from record
Rvanlaak 11 лет назад
Родитель
Сommit
82c040ec12
1 измененных файлов с 2 добавлено и 2 удалено
  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;
         }
         
-        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);