Skip to content

Refactor Toast methods to allow nullable title parameter#632

Open
dirk-helbert wants to merge 1 commit intousernotnull:mainfrom
dirk-helbert:main
Open

Refactor Toast methods to allow nullable title parameter#632
dirk-helbert wants to merge 1 commit intousernotnull:mainfrom
dirk-helbert:main

Conversation

@dirk-helbert
Copy link

This pull request updates the Toast class to improve type safety and consistency for the optional title parameter in its notification methods. All relevant methods now explicitly declare the title parameter as nullable, aligning with modern PHP best practices.

Type consistency improvements:

  • Changed the title parameter type from string $title = null to ?string $title = null in the following methods: danger, debug, info, success, and warning. This ensures proper handling of cases where no title is provided. [1] [2]

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.

2 participants