Skip to content

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

Open
wants to merge 4 commits into
base: 3.x
Choose a base branch
from

Conversation

theofidry
Copy link
Collaborator

@theofidry theofidry commented Mar 23, 2025

  • Review the changes
  • Double check the PHPDoc
  • Document the BC breaks in the Upgrade.md file

@@ -28,7 +28,7 @@
final class ChildCommandFactory
{
public function __construct(
private readonly string $phpExecutable,
public readonly string $phpExecutable,
Copy link
Collaborator Author

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

@theofidry
Copy link
Collaborator Author

This will require several BC breaks hence scheduled for 3.0

@theofidry theofidry added this to the 3.0 milestone Mar 23, 2025
@@ -31,6 +31,7 @@ interface ProcessLauncherFactory
* @param callable(): void $tick
*/
public function create(
array $phpExecutable,
Copy link
Collaborator Author

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,
Copy link
Collaborator Author

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,
Copy link
Collaborator Author

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,
Copy link
Collaborator Author

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

@theofidry theofidry changed the base branch from main to 3.x April 20, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant