Adds scalar type hinting to php, using the error handler