Skip to content

Fix legacy tests that do not trigger any depreciation #20638

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
Nov 26, 2016

Conversation

julienfalque
Copy link
Contributor

Q A
Branch? 3.2
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Fixes implode(): Invalid arguments passed error when a @legacy test with @expectedDeprecation does not actually trigger any deprecation.

@xabbuh
Copy link
Member

xabbuh commented Nov 25, 2016

Shouldn't we rather initialise the property with the empty array then instead of using null?

@nicolas-grekas
Copy link
Member

It may be clearer indeed to initialize both expectedDeprecations and gatheredDeprecations to the empty array, and reset them also L184. Can you take care of that @julienfalque please?

@julienfalque
Copy link
Contributor Author

Done

@nicolas-grekas
Copy link
Member

👍

1 similar comment
@xabbuh
Copy link
Member

xabbuh commented Nov 26, 2016

👍

@nicolas-grekas
Copy link
Member

Thank you @julienfalque.

@nicolas-grekas nicolas-grekas merged commit 9287b52 into symfony:3.2 Nov 26, 2016
nicolas-grekas added a commit that referenced this pull request Nov 26, 2016
…ienfalque)

This PR was merged into the 3.2 branch.

Discussion
----------

Fix legacy tests that do not trigger any depreciation

| Q             | A
| ------------- | ---
| Branch?       | 3.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Fixes `implode(): Invalid arguments passed` error when a `@legacy` test with `@expectedDeprecation` does not actually trigger any deprecation.

Commits
-------

9287b52 Fix tests that do not trigger any depreciation
@julienfalque julienfalque deleted the fix-deprecation-test branch November 26, 2016 09:39
@fabpot fabpot mentioned this pull request Nov 27, 2016
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