From 51e1bf8ff085d14a5b7692c002bf74903e80b9fb Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 11 Oct 2019 09:26:44 +0200 Subject: improve patch for PHP 7.4 --- php-sabre-http-php74.patch | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'php-sabre-http-php74.patch') diff --git a/php-sabre-http-php74.patch b/php-sabre-http-php74.patch index 38cfe2f..9a85b11 100644 --- a/php-sabre-http-php74.patch +++ b/php-sabre-http-php74.patch @@ -14,7 +14,16 @@ diff --git a/lib/Auth/Digest.php b/lib/Auth/Digest.php index 23c28f8..dd35a0b 100644 --- a/lib/Auth/Digest.php +++ b/lib/Auth/Digest.php -@@ -135,6 +135,10 @@ +@@ -124,7 +124,7 @@ class Digest extends AbstractAuth { + */ + function getUsername() { + +- return $this->digestParts['username']; ++ return (isset($this->digestParts['username']) ? $this->digestParts['username'] : null); + + } + +@@ -135,6 +135,10 @@ class Digest extends AbstractAuth { */ protected function validate() { -- cgit