From 79acaa32533bd318cd41bc4a9e548f14d2cab258 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 6 Feb 2020 16:06:58 +0000 Subject: [PATCH] Utils: remove useless typecasts --- src/pocketmine/utils/Utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/utils/Utils.php b/src/pocketmine/utils/Utils.php index ad3ff0b0b..6ebe2ae7d 100644 --- a/src/pocketmine/utils/Utils.php +++ b/src/pocketmine/utils/Utils.php @@ -543,7 +543,7 @@ class Utils{ } switch(Utils::getOS()){ case "win": - exec("taskkill.exe /F /PID " . ((int) $pid) . " > NUL"); + exec("taskkill.exe /F /PID $pid > NUL"); break; case "mac": case "linux": @@ -551,7 +551,7 @@ class Utils{ if(function_exists("posix_kill")){ posix_kill($pid, 9); //SIGKILL }else{ - exec("kill -9 " . ((int) $pid) . " > /dev/null 2>&1"); + exec("kill -9 $pid > /dev/null 2>&1"); } } }