Strict type check in acceptable value #3

Merged
merged 1 commit into from Oct 3, 2011

Conversation

Projects
None yet
2 participants
@patashnik
Contributor

patashnik commented Sep 28, 2011

Лучше проверять еще и тип передаваемого значения при поиске в массиве возможных значений. Чтобы избежать нежелательных ситуаций когда in_array('str', array(0)) === true.

yethee added a commit that referenced this pull request Oct 3, 2011

Merge pull request #3 from patashnik/strict_acceptable_value
Strict type check in acceptable value

@yethee yethee merged commit 232692a into yethee:master Oct 3, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment