Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
[Tests] Code smell boolean cast from condition ([] == [])
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Jun 26, 2015
1 parent 24dff13 commit 4a1adfc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/simple/code-smell/Cast.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ public function testCastBooleanFalse()
return (bool) false;
}

public function testCastBooleanFromEqualStaticCondition()
{
return (bool) ([] == []);
}

public function testAssignCastBooleanFalse()
{
$a = 123456789;
Expand Down

0 comments on commit 4a1adfc

Please sign in to comment.