@@ -99,7 +99,7 @@ class fork_daemon
99
99
/**
100
100
* Function the parent invokes before forking a child
101
101
* @access protected
102
- * @var integer $parent_function_prefork
102
+ * @var string[] $parent_function_prefork
103
103
*/
104
104
protected $ parent_function_prefork = '' ;
105
105
@@ -530,7 +530,7 @@ public function register_child_run($function_name, $bucket = self::DEFAULT_BUCKE
530
530
* @param array names of functions to be called.
531
531
* @return bool true if the callback was successfully registered, false if it failed
532
532
*/
533
- public function register_parent_prefork ($ function_names )
533
+ public function register_parent_prefork (array $ function_names )
534
534
{
535
535
$ this ->parent_function_prefork = $ function_names ;
536
536
return true ;
@@ -615,7 +615,7 @@ public function register_child_exit($function_name, $bucket = self::DEFAULT_BUCK
615
615
}
616
616
617
617
/**
618
- * Allows the app to set the call back function for when a child process is killed to exceeding its max runtime
618
+ * Allows the app to set the call back function for when a child process is killed for exceeding its max runtime
619
619
* @access public
620
620
* @param string name of function to be called.
621
621
* @param int $bucket the bucket to use
@@ -961,7 +961,7 @@ public function received_exit_request($requested = null)
961
961
* @param int $bucket the bucket to use
962
962
* @param bool $sort_queue true to sort the work unit queue
963
963
*/
964
- public function addwork (array $ new_work_units , $ identifier = '' , $ bucket = self ::DEFAULT_BUCKET , $ sort_queue = false )
964
+ public function addwork ($ new_work_units , $ identifier = '' , $ bucket = self ::DEFAULT_BUCKET , $ sort_queue = false )
965
965
{
966
966
// ensure bucket is setup before we try to add data to it
967
967
if (! array_key_exists ($ bucket , $ this ->work_units ))
0 commit comments