Type Hint Class 1.0.0

Type Hint Class replaces the current PHP error handler, that performs enhanced type checking of the types of parameters when functions are called.

Several classes are provided to perform type checking of parameters of base types: boolean, float, integer, string, resource, callable.

There are additional classes for strict type checking of float and string values. These classes do not accept values of other types that could be promoted to types: integer float or string.

When the replacement error handler catches a recoverable error that corresponds to type checking mismatch, it checks the function declaration and calls the type checking class correspondent to the expected type of the parameter that triggered the error.

Requirements:
PHP 5.1 or higher

License type: LGPL - GNU Lesser General Public License
Date added: 5 years, 6 months 25 days ago | Last updated: 5 years, 6 months 25 days ago

More popular Error Handling

This is actually one of the most advanced image hosting script. The imagetize key features: SEO, Ads Ready, Admin

Listing Files

type-hint-class
  • Int.php
  • 799 Bytes
  • 09/24/2008 02:51:36
Hot Scripts
Sponsors