Language: PHP Typification Class
Dmitry Sheiko (contact me)
This class can be used to check the types of the parameters passed to a function at run time.
It is meant to help detecting eventual bugs caused by passing function parameters of the wrong type.
It can take the list of function arguments values and verify whether they match a function argument type specification defined by a string.
If the type of one or more arguments does not match the expected type, the class triggers an error by dumping all the information about the class and the line of the function being called.
Click here for detailed information about this class on phpclasses.org