diff --git a/phalcon/http/request.zep b/phalcon/http/request.zep index 554b8dc47ba..2b6448ff100 100755 --- a/phalcon/http/request.zep +++ b/phalcon/http/request.zep @@ -260,7 +260,7 @@ class Request implements RequestInterface, InjectionAwareInterface /** * Gets HTTP header from request data */ - public final function getHeader(string! header) -> string + public final function getHeader(string! header) -> string | null { var value, name; @@ -274,7 +274,7 @@ class Request implements RequestInterface, InjectionAwareInterface return value; } - return ""; + return null; } /**