Skip to content
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

BaselineNeonErrorFormatter: Sort output by file and pattern, ignoring… #483

Merged
merged 3 commits into from
Mar 28, 2021
Merged

BaselineNeonErrorFormatter: Sort output by file and pattern, ignoring… #483

merged 3 commits into from
Mar 28, 2021

Conversation

dktapps
Copy link
Contributor

@dktapps dktapps commented Mar 28, 2021

… line numbers

since line numbers aren't retained in ignoreErrors, allowing them to influence the ordering just produces spurious changes to baselines when moving code (and possibly other, weirder cases).

This fixes phpstan/phpstan#4737, barring possible bugs in PHP's own sorting algorithm.

… line numbers

since line numbers aren't retained in ignoreErrors, allowing them to influence the ordering just produces spurious changes to baselines when moving code (and possibly other, weirder cases).
the output ordering doesn't depend on line numbers anymore, so the ordering should be lexicographical.
@ondrejmirtes ondrejmirtes merged commit 32f047e into phpstan:master Mar 28, 2021
@ondrejmirtes
Copy link
Member

Thank you!

@dktapps dktapps deleted the baseline-ordering branch March 28, 2021 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants