Skip to content

Commit

Permalink
Add FQCN filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mamuz committed Sep 13, 2015
1 parent ac6e587 commit bd5c8d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Parser/Filter/NodeName.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ public function setOptions(array $options)
$this->excludePattern = (string) $options['excludePattern'];
}

if (isset($options['namespaceFilter'])) {
if (isset($options['namespaceFilter'])
&& $options['namespaceFilter'] instanceof NamespaceFilterInterface
) {
$this->namespaceFilter = $options['namespaceFilter'];
}
}
Expand Down

0 comments on commit bd5c8d1

Please sign in to comment.