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

[PhpUnitBridge] optional error handler arguments#22817

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

Conversation

@xabbuh
Copy link
Member

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketshttps://travis-ci.org/symfony/symfony/jobs/234483755#L2460
LicenseMIT
Doc PR

'other' =>array(),
);
$deprecationHandler =function ($type,$msg,$file,$line,$context)use (&$deprecations,$getMode) {
$deprecationHandler =function ($type,$msg,$file =null,$line =null,$context =array())use (&$deprecations,$getMode) {

Choose a reason for hiding this comment

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

AFAIK, only $context is "optional" (because it's use has been deprecated in 7.2)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This is what thePHP documentation says:

The third parameter is optional, errfile, which contains the filename that the error was raised in, as a string.

[...]

The fourth parameter is optional, errline, which contains the line number the error was raised at, as an integer.

Choose a reason for hiding this comment

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

but this never happens, see Debug which has no issue having them mandatory (and all examples I found into the wild I now about)

Copy link
MemberAuthor

@xabbuhxabbuhMay 21, 2017
edited
Loading

Choose a reason for hiding this comment

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

Fair enough, let's only change the$context argument here. We can challenge the decision in the future anyway if someone can point us to an issue related to it.

@xabbuhxabbuhforce-pushed theoptional-error-handler-arguments branch from47935ac tof7d1a06CompareMay 21, 2017 09:00
@nicolas-grekas
Copy link
Member

Thank you@xabbuh.

@nicolas-grekasnicolas-grekas merged commitf7d1a06 intosymfony:2.7May 21, 2017
nicolas-grekas added a commit that referenced this pull requestMay 21, 2017
This PR was merged into the 2.7 branch.Discussion----------[PhpUnitBridge] optional error handler arguments| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |https://travis-ci.org/symfony/symfony/jobs/234483755#L2460| License       | MIT| Doc PR        |Commits-------f7d1a06 respect optional error handler arguments
@xabbuhxabbuh deleted the optional-error-handler-arguments branchMay 21, 2017 09:11
This was referencedMay 29, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

3 participants

@xabbuh@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp