From ea1d55e82b44e942582d95443a4e9a8c36af5891 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Fri, 4 Mar 2022 14:34:42 +0400 Subject: [PATCH] feat: use strict comparison --- src/Executor/Executor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Executor/Executor.php b/src/Executor/Executor.php index 33cd17cce0..1a96b3561b 100644 --- a/src/Executor/Executor.php +++ b/src/Executor/Executor.php @@ -172,7 +172,7 @@ class Executor switch (true) { case $status < 400: return $response['body']; - case $status == 404: + case $status === 404: $response = $this->createRuntime( deploymentId: $deploymentId, projectId: $projectId, @@ -186,7 +186,7 @@ class Executor $response = $this->call(self::METHOD_POST, $route, $headers, $params, true, $requestTimeout); $status = $response['headers']['status-code']; break; - case $status == 406: + case $status === 406: $response = $this->call(self::METHOD_POST, $route, $headers, $params, true, $requestTimeout); $status = $response['headers']['status-code']; break;