daverandom/callback-validator
Validate PHP callable signatures against a prototype with variance support. Build a CallbackType from an existing callable or define it manually, then test other callables for parameter/return compatibility (contra/covariance, nullability) and inspect mismatches via __toString().
Tools for validating callback signatures in PHP
How can I help you explore Laravel packages today?