From 868ad1d5c4ec7a4cb8c38be56bb3c2b380c3718a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 25 Nov 2022 23:49:56 +0100 Subject: [PATCH] change to strict comparison --- Image/Kernel.php | 2 +- Image/Skew.php | 4 ++-- Image/Thresholding.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Image/Kernel.php b/Image/Kernel.php index c6c2c34d5..6eee370c4 100755 --- a/Image/Kernel.php +++ b/Image/Kernel.php @@ -86,7 +86,7 @@ final class Kernel $im = \imagecreatefromgif($inPath); } - if ($im == false) { + if ($im === false) { return; } diff --git a/Image/Skew.php b/Image/Skew.php index 6c9bcaf7a..58cb3f0a0 100755 --- a/Image/Skew.php +++ b/Image/Skew.php @@ -44,7 +44,7 @@ final class Skew $im = \imagecreatefromgif($inPath); } - if ($im == false) { + if ($im === false) { return; } @@ -97,7 +97,7 @@ final class Skew } $im = \imagerotate($im, $bestDegree, 1); - if ($im == false) { + if ($im === false) { return; } diff --git a/Image/Thresholding.php b/Image/Thresholding.php index 33713962e..247cc59f3 100755 --- a/Image/Thresholding.php +++ b/Image/Thresholding.php @@ -50,7 +50,7 @@ final class Thresholding $im = \imagecreatefromgif($inPath); } - if ($im == false) { + if ($im === false) { return; }