PHP Classes

Java and C# compatible scalar type hinting: Check the types of called function arguments

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 193 All time: 8,552 This week: 455Up
Version License PHP version Categories
scalar-type-hinting 1.2GNU Lesser Genera...5.2PHP 5, Data types, Language
Description 

Author

This class can be used to check the types of called function arguments.

It sets up an error handler function that can determine if a function is being called with the wrong types of arguments.

The error handler checks if the type hinting classes for the function being called is string, integer, float, double, boolean and checks if the argument values are of the declared types.

Picture of Artur Graniszewski
  Performance   Level  
Name: Artur Graniszewski is available for providing paid consulting. Contact Artur Graniszewski .
Classes: 14 packages by
Country: Poland Poland
Age: 42
All time rank: 2874 in Poland Poland
Week rank: 197 Up2 in Poland Poland Up
Innovation award
Innovation award
Nominee: 7x

Winner: 1x

Screenshots (1)  
  • matching.JPG
  Files folder image Files (4)  
File Role Description
Plain text file typehint.php Class Main class
Accessible without login Plain text file php_5.2_example.php Example PHP 5.2 example (without namespaces)
Accessible without login Plain text file php_5.3_example.php Example PHP 5.3 example (with namespaces)

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:193
This week:0
All time:8,552
This week:455Up