8000 [Console] remove BC breaking argument by xabbuh · Pull Request #19072 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console] remove BC breaking argument #19072

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

Merged
merged 1 commit into from
Jun 16, 2016
Merged

Conversation

xabbuh
Copy link
Member
@xabbuh xabbuh commented Jun 16, 2016
Q A
Branch? master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #18999 (comment)
License MIT
Doc PR

@chalasr
Copy link
Member
chalasr commented Jun 16, 2016

👍 Good catch, thank you @xabbuh. It's even better to don't have it as a real argument.

if (func_num_args() > 0) {
$triggerDeprecationError = func_get_arg(0);
}

if ($triggerDeprecationError) {
Copy link
Member

Choose a reason for hiding this comment

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

what about: if (0 < func_num_args() && func_get_arg(0)) {

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess you mean 0 === func_num_args() || func_get_arg(0)?

Copy link
Member

Choose a reason for hiding this comment

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

yes :)

Copy link
Member Author

Choose a reason for hiding this comment

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

fine for me :)

@nicolas-grekas
Copy link
Member

👍

{
if ($triggerDeprecationError) {
if (0 === func_num_args() || func_get_arg(0)) {
@trigger_error(sprintf('The %s() method is deprecated since version 3.2 and will be removed in 4.0. Use %s:getStream() instead.', __METHOD__, StreamableInputInterface::class), E_USER_DEPRECATED);
Copy link
Member

Choose a reason for hiding this comment

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

Should be %s::getStream(), isn't it? (double colon)

Copy link
Member

Choose a reason for hiding this comment

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

Sorry... @xabbuh Can you please BTW fix it?

Copy link
Member

Choose a reason for hiding this comment

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

Same typo on the setter... I will open a PR.

Copy link
Member

Choose a reason for hiding this comment

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

See #19073

Copy link
Member Author

Choose a reason for hiding this comment

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

@chalasr Sorry, I missed that comment. Thank you for creating the PR.

@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit f574330 into symfony:master Jun 16, 2016
nicolas-grekas added a commit that referenced this pull request Jun 16, 2016
This PR was merged into the 3.2-dev branch.

Discussion
----------

[Console] remove BC breaking argument

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18999 (comment)
| License       | MIT
| Doc PR        |

Commits
-------

f574330 remove BC breaking argument
nicolas-grekas added a commit that referenced this pull request Jun 16, 2016
…warning (chalasr)

This PR was merged into the 3.2-dev branch.

Discussion
----------

Fix the missing colon in get/setInputStream deprecation warning

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #19072 (comment)
| License       | MIT
| Doc PR        | ~

Commits
-------

0d6dc8e Fix the missing colon in get/setInputStream deprecation warning
@xabbuh xabbuh deleted the pr-18999 branch June 16, 2016 10:06
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.

4 participants
0