Skip to content

Commit

Permalink
Merge pull request #44 from peteradeojo/fix/declaration-compatibility
Browse files Browse the repository at this point in the history
fix: declaration compatibility of ParentRuntime::createProcess #43
  • Loading branch information
vuongxuongminh authored Oct 2, 2023
2 parents 369b19a + 4352c45 commit f87d842
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"require": {
"php": "^8.1",
"illuminate/support": "^10.0",
"spatie/async": "^1.5"
"spatie/async": "^1.6"
},
"require-dev": {
"orchestra/testbench": "^8.0",
Expand Down
4 changes: 2 additions & 2 deletions src/Runtime/ParentRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
*/
class ParentRuntime extends BaseParentRuntime
{
public static function createProcess($task, ?int $outputLength = null, ?string $binary = 'php'): Runnable
public static function createProcess($task, ?int $outputLength = null, ?string $binary = 'php', ?int $max_input_size = 100000): Runnable
{
$runnable = parent::createProcess($task, $outputLength, $binary);
$runnable = parent::createProcess($task, $outputLength, $binary, $max_input_size);

if ($runnable instanceof SynchronousProcess) {
return $runnable;
Expand Down

0 comments on commit f87d842

Please sign in to comment.