Skip to content

Allow 'notice' and 'error' flash message keys#7015

Merged
javiereguiluz merged 2 commits intoEasyCorp:4.xfrom
jontjs:issue-7014
Jul 5, 2025
Merged

Allow 'notice' and 'error' flash message keys#7015
javiereguiluz merged 2 commits intoEasyCorp:4.xfrom
jontjs:issue-7014

Conversation

@jontjs
Copy link
Copy Markdown
Contributor

@jontjs jontjs commented Jun 26, 2025

Fixes part 1 of issue 7014 (allowing the "commonly used" flash keys).

Comment thread src/Twig/Component/Option/AlertVariant.php Outdated
Co-authored-by: Vincent Langlet <VincentLanglet@users.noreply.github.com>
@jontjs jontjs requested a review from VincentLanglet July 1, 2025 13:37
return 'alert-'.match ($this) {
self::Primary, self::Secondary, self::Success, self::Danger, self::Warning, self::Info, self::Light, self::Dark => $this->value,
self::Notice => 'info',
self::Error => 'danger',
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

why not using here self::Danger and self::Info?

@javiereguiluz javiereguiluz merged commit 3bcc974 into EasyCorp:4.x Jul 5, 2025
15 checks passed
@javiereguiluz
Copy link
Copy Markdown
Collaborator

Thanks Jon!

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.

4 participants