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

Undeprecate escapeArgument(). #1039

Conversation

markdorison
Copy link
Contributor

@markdorison markdorison commented Jul 7, 2021

Overview

This pull request:

  • Fixes a bug
  • Adds a feature
  • Breaks backwards compatibility
  • Has tests that cover changes
  • Adds or fixes documentation

Summary

Undeprecate ProcessUtils::escapeArgument() and replaces error with updated method
documentation per #1023 (comment).

Should hopefully be able to be backported to 2.x.

Closes #1023.

Undeprecate escapeArgument and replace error with updated method
documentation per
consolidation#1023 (comment).
@greg-1-anderson
Copy link
Member

Looks good, thanks for the PR. Backport welcome.

@greg-1-anderson
Copy link
Member

Actually running the tests before merging. Must pass, right?

@greg-1-anderson greg-1-anderson merged commit 5470dde into consolidation:3.x Jul 7, 2021
@Alenore
Copy link

Alenore commented Jul 7, 2021

Symfony Process does provide a new escapeArgument() method, however in the form of a private method. Shouldn't it be used instead of the old one?

@greg-1-anderson
Copy link
Member

If the new escapeArguement works better than the one that's copied here, we could pull it in as follow-on work. Since your other PR makes the escape method mostly unused, it might not be worth the effort. Up to you if you want to address this in your PR or not.

@markdorison markdorison deleted the 1023-undeprecate-escapeArgument branch July 7, 2021 18:24
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.

escapeArgument deprecation error
3 participants