Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:masterfromxabbuh:pr-18999
Jun 16, 2016

Conversation

@xabbuh
Copy link
Member

QA
Branch?master
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#18999 (comment)
LicenseMIT
Doc PR

@chalasr
Copy link
Member

chalasr commentedJun 16, 2016
edited
Loading

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

$triggerDeprecationError =func_get_arg(0);
}

if ($triggerDeprecationError) {

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
MemberAuthor

Choose a reason for hiding this comment

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

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

Choose a reason for hiding this comment

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

yes :)

Copy link
MemberAuthor

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);

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.

Copy link
MemberAuthor

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-grekasnicolas-grekas merged commitf574330 intosymfony:masterJun 16, 2016
nicolas-grekas added a commit that referenced this pull requestJun 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 requestJun 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
@xabbuhxabbuh deleted the pr-18999 branchJune 16, 2016 10:06
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@xabbuh@chalasr@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp