Last active
August 29, 2015 14:20
-
-
Save wrossmann/4ec693517225676400de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
foreach($filters as $pos => $filter) { | |
if( ! $filter instanceof Filter\FilterInterface ) { | |
throw new \InvalidArgumentException( | |
sprintf('Argument 3 passed to %s::%s must be an array of instances of %s, %s given for index %d', | |
__CLASS__, __FUNCTION__, 'Filter\FilterInterface', get_class($filter), $pos) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment