Skip to content

Commit f4a5d35

Browse files
authored
Merge pull request #1 from Skywire/arrayFix
DD#0000: fix: Added check around array values
2 parents bf87b0e + e72ce26 commit f4a5d35

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Processor/UrlProcessor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ class UrlProcessor implements ProcessorInterface
1717
{
1818
public function __invoke(array $records)
1919
{
20-
$records['extra']['url'] = $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'];
20+
if (isset($_SERVER['REQUEST_METHOD']) && isset($_SERVER['REQUEST_URI'])) {
21+
$records['extra']['url'] = $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'];
22+
}
2123

2224
return $records;
2325
}

0 commit comments

Comments
 (0)