Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Process] PhpProcess::fromShellCommandLine #35638

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

Closed
wants to merge 1 commit into from
Closed

[Process] PhpProcess::fromShellCommandLine #35638

wants to merge 1 commit into from

Conversation

Guikingone
Copy link
Contributor

@Guikingone Guikingone commented Feb 7, 2020

Q A
Branch? master
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #35637
License MIT
Doc PR None

Hi everyone 👋

This PR fix a small issue found in PhpProcess::fromShellCommandLine(), the fix is not big as it's only an override of the method, tests added.

@nicolas-grekas
Copy link
Member

This should target 4.4, isn't it?
To me, this should not be allowed and we should make the method throw instead.

@Guikingone
Copy link
Contributor Author

So, PhpProcess cannot be used with fromShellCommandLine? 🤔

@Guikingone Guikingone changed the base branch from master to 4.4 February 7, 2020 18:11
@Guikingone Guikingone changed the base branch from 4.4 to master February 7, 2020 18:12
@nicolas-grekas
Copy link
Member

Correct. There is no use case for that, the implementation you provided doesn't make sense: it duplicates the existing constructor, but we don't need two ways doing the same.

@Guikingone
Copy link
Contributor Author

Ok, I understand the point, so, this method should only throw, can we use the component LogicException?

@nicolas-grekas
Copy link
Member

Would LGTM yes.

@Guikingone
Copy link
Contributor Author

Ok, sorry for the wrong branch target, I've pushed a new PR and rebased it for 4.4, I close this one.

@Guikingone Guikingone closed this Feb 7, 2020
fabpot added a commit that referenced this pull request Feb 8, 2020
… used (Guikingone)

This PR was merged into the 4.4 branch.

Discussion
----------

[Process] throw when PhpProcess::fromShellCommandLine() is used

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #35637
| License       | MIT
| Doc PR        | None

Close #35638

Final PR (rebased and tests added)

Commits
-------

7f6d71c refactor(Process): fromShellCommandLine
@Guikingone Guikingone deleted the fix/php-process branch October 3, 2020 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Process] PhpProcess constructor arguments
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.