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

Update getNavigationBadge() to allow int|string|null return type #15452

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

iRaziul
Copy link
Contributor

@iRaziul iRaziul commented Jan 28, 2025

Description

Updated getNavigationBadge method to support multiple return types.
The method can now return int, string, or null instead of only string|null.
This allows more flexibility for navigation badges that might need to display numeric values or whenever using strict types.

Visual changes

No visual changes - this is a type declaration update that doesn't affect runtime behavior.

Functional changes

  • Code style has been fixed by running the composer cs command
  • Changes have been tested to not break existing functionality
  • Documentation is up-to-date (assuming method docs were updated if needed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant