From cf67ffa0b08b981d21bae7a98a281138919811a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sat, 9 Oct 2021 15:52:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ClientAbstracts.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ClientAbstracts.php b/src/ClientAbstracts.php index 470ebd7..2265b0e 100644 --- a/src/ClientAbstracts.php +++ b/src/ClientAbstracts.php @@ -298,7 +298,7 @@ abstract class ClientAbstracts implements IClient * @param bool $isSSL * @return ClientAbstracts */ - private function withIsSSL(bool $isSSL): static + public function withIsSSL(bool $isSSL): static { $this->isSSL = $isSSL; return $this; @@ -555,7 +555,7 @@ abstract class ClientAbstracts implements IClient * @return bool * check isPost Request */ - #[Pure] public function isPost(): bool + #[Pure] protected function isPost(): bool { return strtolower($this->method) === self::POST; } @@ -564,7 +564,7 @@ abstract class ClientAbstracts implements IClient * @return bool * check isPost Request */ - #[Pure] public function isUpload(): bool + #[Pure] protected function isUpload(): bool { return strtolower($this->method) === self::UPLOAD; } @@ -575,7 +575,7 @@ abstract class ClientAbstracts implements IClient * * check isGet Request */ - #[Pure] public function isGet(): bool + #[Pure] protected function isGet(): bool { return strtolower($this->method) === self::GET; }