From 4a1adfce3b5403077a730aa2e52b9c22486d7159 Mon Sep 17 00:00:00 2001 From: Dmitry Patsura Date: Fri, 26 Jun 2015 14:48:23 +0900 Subject: [PATCH] [Tests] Code smell boolean cast from condition ([] == []) --- tests/simple/code-smell/Cast.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/simple/code-smell/Cast.php b/tests/simple/code-smell/Cast.php index 4041a9a8..91d450fb 100644 --- a/tests/simple/code-smell/Cast.php +++ b/tests/simple/code-smell/Cast.php @@ -18,6 +18,11 @@ public function testCastBooleanFalse() return (bool) false; } + public function testCastBooleanFromEqualStaticCondition() + { + return (bool) ([] == []); + } + public function testAssignCastBooleanFalse() { $a = 123456789;