From c4e9bc3d0689ffce02029964551fd99af1f29f66 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 19 Jul 2018 06:18:20 +0700 Subject: [PATCH] remove unneeded (string) casting before cast to int in ToInt filter --- src/ToInt.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ToInt.php b/src/ToInt.php index 86e7caa5..557c3f43 100644 --- a/src/ToInt.php +++ b/src/ToInt.php @@ -26,7 +26,6 @@ public function filter($value) if (! is_scalar($value)) { return $value; } - $value = (string) $value; return (int) $value; }