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

Appearance settings

[FrameworkBundle] Fixed form type extensions priority ordering #20993

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

Closed

Conversation

HeahDude
Copy link
Contributor

@HeahDude HeahDude commented Dec 19, 2016

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

I've kind of insisted in #19790 to use the trait, but maybe a few line of codes of PHP won't kill the warmup and I hope will fix the BC break so we can can keep this needed feature before 4.0 next year.

@francoispluchino Could you please confirm whether or not this patch fixes your issue?

@HeahDude
Copy link
Contributor Author

Tests have confirmed it "Php7 uses non stable sorting algos, on the contrary to php5" :(

@HeahDude
Copy link
Contributor Author

@francoispluchino your version looks more stable 241684a ;) 🎉

@francoispluchino
Copy link
Contributor

@HeahDude For this reason, I have proposed the PR #20995.

@HeahDude
Copy link
Contributor Author

Closing in favor of #20995.

@HeahDude HeahDude closed this Dec 20, 2016
nicolas-grekas added a commit that referenced this pull request Jan 3, 2017
…ass trait (francoispluchino)

This PR was merged into the 3.2 branch.

Discussion
----------

[DependencyInjection] Fix the priority order of compiler pass trait

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

A regression has appeared between the version `3.1` and `3.2` on the compilation passes using a priority option (see #20332).

Indeed, the order is no longer preserved for service definitions with the same priority. This is caused by the `SplPriorityQueue` class that does not have a FIFO implementation (see this [comment](#20332 (comment))).

The PR #20993 fixes the problem but only for Forms, not for all compiler passes using the `PriorityTaggedServiceTrait` trait since `3.2`.

Commits
-------

aac9a7e Fix the priority order of compiler pass trait
@HeahDude HeahDude deleted the fix/form_type_extensions-priorities branch November 24, 2018 13:14
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.