php-resque icon indicating copy to clipboard operation
php-resque copied to clipboard

Use is_callable instead of method_exists to check for setup/teardown

Open bendmorris opened this issue 7 years ago • 0 comments

method_exists will return true even if an object has a protected method; calling it from Resque will then fail. is_callable only returns true when the method both exists and can be called externally.

bendmorris avatar Jan 04 '18 00:01 bendmorris