Skip to content

Commit

Permalink
Use strict check
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jun 8, 2015
1 parent 0d612cd commit 5bc3470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ORM/AssociationCollection.php
Expand Up @@ -121,7 +121,7 @@ public function type($class)

$out = array_filter($this->_items, function ($assoc) use ($class) {
list(, $name) = namespaceSplit(get_class($assoc));
return in_array($name, $class);
return in_array($name, $class, true);
});
return array_values($out);
}
Expand Down

0 comments on commit 5bc3470

Please sign in to comment.