diff --git a/src/Configurations/PageRulesActions.php b/src/Configurations/PageRulesActions.php index de28b45..cdb03c8 100644 --- a/src/Configurations/PageRulesActions.php +++ b/src/Configurations/PageRulesActions.php @@ -40,7 +40,7 @@ class PageRulesActions implements Configurations ]); } - public function setBypassCacheOnCookie(bool $value) + public function setBypassCacheOnCookie(string $value) { if (preg_match('/^([a-zA-Z0-9\.=|_*-]+)$/i', $value) < 1) { throw new ConfigurationsException("Invalid cookie string."); @@ -76,7 +76,7 @@ class PageRulesActions implements Configurations ]); } - public function setCacheOnCookie(bool $value) + public function setCacheOnCookie(string $value) { if (preg_match('/^([a-zA-Z0-9\.=|_*-]+)$/i', $value) < 1) { throw new ConfigurationsException("Invalid cookie string."); diff --git a/tests/Endpoints/DNSTest.php b/tests/Endpoints/DNSTest.php index 3035b5b..66eb9d9 100644 --- a/tests/Endpoints/DNSTest.php +++ b/tests/Endpoints/DNSTest.php @@ -93,13 +93,13 @@ class DNSTest extends TestCase $mock = $this->getMockBuilder(\Cloudflare\API\Adapter\Adapter::class)->getMock(); $mock->method('put')->willReturn($response); - $details = array( + $details = [ 'type' => 'A', 'name' => "example.com", 'content' => "1.2.3.4", 'ttl' => 120, 'proxied' => false, - ); + ]; $mock->expects($this->once()) ->method('put')