Use standard boolean operator

This commit is contained in:
Matthew Exon 2024-07-03 08:03:33 +02:00
parent c7937300db
commit f32592e148

View file

@ -230,7 +230,7 @@ class CurlResult implements ICanHandleHttpResponses
$this->redirectUrl = (string)Uri::fromParts((array)$redirect_parts); $this->redirectUrl = (string)Uri::fromParts((array)$redirect_parts);
$this->isRedirectUrl = true; $this->isRedirectUrl = true;
$this->redirectIsPermanent = $this->returnCode == 301 or $this->returnCode == 308; $this->redirectIsPermanent = $this->returnCode == 301 || $this->returnCode == 308;
} else { } else {
$this->isRedirectUrl = false; $this->isRedirectUrl = false;
$this->redirectIsPermanent = false; $this->redirectIsPermanent = false;