Commit be31ff21 by Scott

Travis fix

Remove PHP 5.3;
Fix notice when no REQUEST_METHOD
parent 241cc5fa
......@@ -13,11 +13,6 @@ php:
- '7.2'
- '7.3'
matrix:
include:
- php: '5.3'
dist: precise
notifications:
email:
on_success: change
......
......@@ -37,7 +37,7 @@ class Router
public function __construct()
{
// implicity support HEAD requests (PHP takes care of removing the response body for us)
$method = strtoupper($_SERVER['REQUEST_METHOD']);
$method = isset($_SERVER['REQUEST_METHOD']) ? strtoupper($_SERVER['REQUEST_METHOD']) : 'GET';
$this->httpMethod = ($method === 'HEAD' ? 'GET' : $method);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment