chrisboulton / php-resque

PHP port of resque (Workers and Queueing)
MIT License
3.44k stars 761 forks source link

Use is_callable instead of method_exists to check for setup/teardown #360

Open bendmorris opened 6 years ago

bendmorris commented 6 years ago

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.