Skip to content

Make discriminator argument multiple - #52

Merged
jolelievre merged 1 commit into
PrestaShopCorp:masterfrom
jolelievre:discimination-array
Feb 16, 2026
Merged

jolelievre merged 1 commit into
PrestaShopCorp:masterfrom
jolelievre:discimination-array

Conversation

@jolelievre

Copy link
Copy Markdown
Contributor

We need multiple possibilities to check if a comment is a license comment

Use case

On the core we changed the default comment from a long one to a short one PrestaShop/PrestaShop#40768

The problem is that old files from previous PRs have the old header, which is incompatible with the new one and detected as an error. But the fixer part doesn't recognize the old header as a license header and prefixes the new one above it.

That's why we need multiple ways to identify the license comment, so we can use the header-stamp to migrate them by specifyng and old and a new discriminator.

@jolelievre
jolelievre merged commit 936c452 into PrestaShopCorp:master Feb 16, 2026
13 checks passed
@jolelievre
jolelievre deleted the discimination-array branch February 16, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants