We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bf87b0e + e72ce26 commit f4a5d35Copy full SHA for f4a5d35
src/Processor/UrlProcessor.php
@@ -17,7 +17,9 @@ class UrlProcessor implements ProcessorInterface
17
{
18
public function __invoke(array $records)
19
20
- $records['extra']['url'] = $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'];
+ if (isset($_SERVER['REQUEST_METHOD']) && isset($_SERVER['REQUEST_URI'])) {
21
+ $records['extra']['url'] = $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'];
22
+ }
23
24
return $records;
25
}
0 commit comments