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

[2.3] fix php8.1 error with self-update --clean-backups #10696 #10704

Closed
wants to merge 1 commit into from

Conversation

it-can
Copy link

@it-can it-can commented Apr 4, 2022

Fix for #10696

@it-can it-can changed the title fix php8.1 error #10696 fix php8.1 error with self-update --clean-backups #10696 Apr 4, 2022
@it-can it-can changed the title fix php8.1 error with self-update --clean-backups #10696 [2.3] fix php8.1 error with self-update --clean-backups #10696 Apr 4, 2022
@Seldaek Seldaek added this to the 2.3 milestone Apr 6, 2022
@Seldaek Seldaek added the Bug label Apr 6, 2022
@Seldaek Seldaek closed this in 106149d Apr 6, 2022
@Seldaek
Copy link
Member

Seldaek commented Apr 6, 2022

Thanks for the PR, however your change changed the semantics of cleanBackups as it always kept one file instead of cleaning all when no $except is passed. I also took a good look at all phpstan errors for this file to ensure we fix all edge cases as it's quite a critical code path, so I ended up fixing this differnetly in 106149d

emahorvat52 pushed a commit to emahorvat52/composer that referenced this pull request Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants