From f32592e1488934682bc86127d38012d4a590e8cf Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Wed, 3 Jul 2024 08:03:33 +0200 Subject: [PATCH] Use standard boolean operator --- src/Network/HTTPClient/Response/CurlResult.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/HTTPClient/Response/CurlResult.php b/src/Network/HTTPClient/Response/CurlResult.php index 79aa9c722f..2680a8b806 100644 --- a/src/Network/HTTPClient/Response/CurlResult.php +++ b/src/Network/HTTPClient/Response/CurlResult.php @@ -230,7 +230,7 @@ class CurlResult implements ICanHandleHttpResponses $this->redirectUrl = (string)Uri::fromParts((array)$redirect_parts); $this->isRedirectUrl = true; - $this->redirectIsPermanent = $this->returnCode == 301 or $this->returnCode == 308; + $this->redirectIsPermanent = $this->returnCode == 301 || $this->returnCode == 308; } else { $this->isRedirectUrl = false; $this->redirectIsPermanent = false; -- 2.39.5