Skip to content

[Config][ReflectionClassResource] Use ternary instead of null coalescing operator #32561

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
Jul 16, 2019

Conversation

fancyweb
Copy link
Contributor

@fancyweb fancyweb commented Jul 16, 2019

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

?? cannot be on 3.4, tests are failing because of this.

@fancyweb fancyweb changed the title [Config][ReflectionClassResource] Use ternary instead of null coaelscing operator [Config][ReflectionClassResource] Use ternary instead of null coalescing operator Jul 16, 2019
@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Jul 16, 2019
@fabpot
Copy link
Member

fabpot commented Jul 16, 2019

Thank you @fancyweb.

@fabpot fabpot merged commit 4db953f into symfony:3.4 Jul 16, 2019
fabpot added a commit that referenced this pull request Jul 16, 2019
… null coalescing operator (fancyweb)

This PR was merged into the 3.4 branch.

Discussion
----------

[Config][ReflectionClassResource] Use ternary instead of null coalescing operator

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

`??` cannot be on 3.4, tests are failing because of this.

Commits
-------

4db953f [Config][ReflectionClassResource] Use ternary instead of null coaelscing operator
@fancyweb fancyweb deleted the fix-reflection-class-resource-php-5 branch July 16, 2019 13:05
@yceruto
Copy link
Member

yceruto commented Jul 16, 2019

another occurrence here in 3.4

$pattern = $displayFormat['pattern'] ?? '{0} ({1})';
$separator = $displayFormat['separator'] ?? '{0}, {1}';

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.

6 participants