Skip to content

Minor cleanup #46043

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
Apr 14, 2022
Merged

Minor cleanup #46043

merged 1 commit into from
Apr 14, 2022

Conversation

fancyweb
Copy link
Contributor

Q A
Branch? 6.1
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

I was reviewing #44405 when it was merged. I had some minor fixes to do so I added them to this PR.

@fancyweb fancyweb requested review from xabbuh and yceruto as code owners April 14, 2022 08:25
@carsonbot carsonbot added this to the 6.1 milestone Apr 14, 2022
@@ -71,11 +71,11 @@ class UnusedTagsPass implements CompilerPassInterface
'property_info.list_extractor',
'property_info.type_extractor',
'proxy',
'routing.condition_service',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The tags are sorted alphabetically.

@@ -37,10 +37,10 @@ public function __construct(string $enum, \BackedEnum ...$cases)
}
}

$this->values = array_unique(array_map(
$this->values = array_map(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

array_unique is useless now that all cases comes from the same enum

@nicolas-grekas
Copy link
Member

Thank you @fancyweb.

@nicolas-grekas nicolas-grekas merged commit f1ce841 into symfony:6.1 Apr 14, 2022
@fancyweb fancyweb deleted the minor/minor-clean-61 branch April 14, 2022 08:40
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.

3 participants