UnionOfRAD/lithium — pull request #737 by jails (2012-12-13 14:16:23+00:00)
Title: Fix #427

The main problem here concern the empty string `''` which match indifferently `0` or `'0'` due to PHP's casting.
This PR take this specific case into account to avoid matching issue with this specific value.

However other casting issues are left to the user e.g.:

$this->assertTrue(Validator::isInList('0', null, array('list' => array(true, false)))); //Pass
$this->assertTrue(Validator::isInList('1', null, array('list' => array(true, false)))); //Pass
$this->assertTrue(Validator::isInList('Gwoo lent his boat in exchange of beer', null, array('list' => array(true, false)))); //Pass