1 | <?php |
||
17 | class JobProcess |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | public $binPath; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | public $scriptName; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | public $binary; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | public $binaryArgs; |
||
38 | |||
39 | public function __construct( |
||
50 | |||
51 | /** |
||
52 | * Get the Artisan process for the job id. |
||
53 | * |
||
54 | * @param Job|MongoJob $job |
||
55 | * @param string $connectionName |
||
56 | * |
||
57 | * @return Process |
||
58 | */ |
||
59 | public function getProcess(Job $job, string $connectionName): Process |
||
76 | |||
77 | /** |
||
78 | * @param $cmd |
||
79 | * |
||
80 | * @return string |
||
81 | */ |
||
82 | protected function getBackgroundCommand(string $cmd): string |
||
90 | |||
91 | /** |
||
92 | * Get the escaped PHP Binary from the configuration |
||
93 | * |
||
94 | * @return string |
||
95 | */ |
||
96 | protected function getPhpBinary(): string |
||
110 | } |
||
111 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.