Use strict equality for unknown pragma check.

Yay PHP!

Also, update tests.
This commit is contained in:
Justin Hileman
2011-10-14 13:25:07 -07:00
parent 3b20940662
commit 30d23077c8
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ class Mustache {
if (isset($options['pragmas'])) {
foreach ($options['pragmas'] as $pragma_name => $pragma_value) {
if (!in_array($pragma_name, $this->_pragmasImplemented)) {
if (!in_array($pragma_name, $this->_pragmasImplemented, true)) {
throw new MustacheException('Unknown pragma: ' . $pragma_name, MustacheException::UNKNOWN_PRAGMA);
}
}