8000 clean up documentation and type hinting · notion/forkdaemon-php@bcaaff2 · GitHub
[go: up one dir, main page]

Skip to content

Commit bcaaff2

Browse files
Lindsay SniderKevin Bonner
authored andcommitted
clean up documentation and type hinting
1 parent 06462cf commit bcaaff2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

fork_daemon.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class fork_daemon
9999
/**
100100
* Function the parent invokes before forking a child
101101
* @access protected
102-
* @var integer $parent_function_prefork
102+
* @var string[] $parent_function_prefork
103103
*/
104104
protected $parent_function_prefork = '';
105105

@@ -530,7 +530,7 @@ public function register_child_run($function_name, $bucket = self::DEFAULT_BUCKE
530530
* @param array names of functions to be called.
531531
* @return bool true if the callback was successfully registered, false if it failed
532532
*/
533-
public function register_parent_prefork($function_names)
533+
public function register_parent_prefork(array $function_names)
534534
{
535535
$this->parent_function_prefork = $function_names;
536536
return true;
@@ -615,7 +615,7 @@ public function register_child_exit($function_name, $bucket = self::DEFAULT_BUCK
615615
}
616616

617617
/**
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
619619
* @access public
620620
* @param string name of function to be called.
621621
* @param int $bucket the bucket to use
@@ -961,7 +961,7 @@ public function received_exit_request($requested = null)
961961
* @param int $bucket the bucket to use
962962
* @param bool $sort_queue true to sort the work unit queue
963963
*/
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)
965965
{
966966
// ensure bucket is setup before we try to add data to it
967967
if (! array_key_exists($bucket, $this->work_units))

0 commit comments

Comments
 (0)
0