Skip to content
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

[Parallel] Fix missing --xdebug in WorkerCommand line on WorkerCommandLineFactory when --xdebug provided #5398

Merged
merged 4 commits into from
Dec 28, 2023

Conversation

samsonasik
Copy link
Member

@zangai @deviantintegral @MartinsRucevskis @staabm could you verify manually this patch on WorkerCommandLineFactory can fix rectorphp/rector#8060

Thank you.

@samsonasik
Copy link
Member Author

I see, the issue was it missing register option to ProcessConfigureDecorator, I added it 4786e34

@samsonasik
Copy link
Member Author

@TomasVotruba I added unit test on WorkerCommandLineFactoryTest for it 91de44c

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I think it is ready.

@@ -43,7 +43,7 @@ public function doRun(InputInterface $input, OutputInterface $output): int
{
// @fixes https://github.com/rectorphp/rector/issues/2205
$isXdebugAllowed = $input->hasParameterOption('--xdebug');
if (! $isXdebugAllowed) {
if ($isXdebugAllowed) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by register option xdebug to ProcessConfigureDecorator, the is xdebug has parameter option seems can use truthy check 👍

@TomasVotruba TomasVotruba merged commit f54a79b into main Dec 28, 2023
42 checks passed
@TomasVotruba TomasVotruba deleted the add-missing-xdebug branch December 28, 2023 11:59
@TomasVotruba
Copy link
Member

Let's ship it 👍

@staabm
Copy link
Contributor

staabm commented Dec 28, 2023

in phpstan reecntly the internal worker commands have been marked as hidden, so they don't confuse the end user

phpstan/phpstan-src#2833

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants