Move to Type Checked Parameters
joseph-montanez opened this issue · comments
Joseph Montanez commented
Right now most parameters that take in an object are not type checked, only the stub has the type defined.
For example:
Z_PARAM_ZVAL(image)
Is used to pull in an \raylib\Image object. However you could pass in any object and crash your program. Instead I can move to type checking i.e:
Z_PARAM_OBJ_OF_CLASS(image, php_raylib_image_ce)
This will correctly those an error in PHP that the object is not correct.