-
Notifications
You must be signed in to change notification settings - Fork 19
fix: Inherit PHP settings from the main process #307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 3.x
Are you sure you want to change the base?
Conversation
theofidry
commented
Mar 23, 2025
•
edited
Loading
edited
- Review the changes
- Double check the PHPDoc
- Document the BC breaks in the Upgrade.md file
src/Input/ChildCommandFactory.php
Outdated
@@ -28,7 +28,7 @@ | |||
final class ChildCommandFactory | |||
{ | |||
public function __construct( | |||
private readonly string $phpExecutable, | |||
public readonly string $phpExecutable, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be able to pass the PHP executable to PhpSubprocess
we need to expose it, instead of passing it as part of the created command
This will require several BC breaks hence scheduled for 3.0 |
@@ -31,6 +31,7 @@ interface ProcessLauncherFactory | |||
* @param callable(): void $tick | |||
*/ | |||
public function create( | |||
array $phpExecutable, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change is a BC break
@@ -35,6 +35,7 @@ interface SymfonyProcessFactory | |||
public function startProcess( | |||
int $index, | |||
InputStream $inputStream, | |||
array $phpExecutable, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change is a BC break
@@ -135,6 +136,7 @@ private function startProcess(InputStream $inputStream): void | |||
$process = $this->processFactory->startProcess( | |||
$index, | |||
$inputStream, | |||
$this->phpExecutable, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change is a BC break
@@ -32,6 +32,7 @@ public function __construct(private SymfonyProcessFactory $processFactory) | |||
* @param callable(): void $tick | |||
*/ | |||
public function create( | |||
array $phpExecutable, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change is a BC break