Skip to content

Conversation

AJenbo
Copy link
Contributor

@AJenbo AJenbo commented Apr 8, 2025

This PR adds explicit type annotations to the MessageBag class, improving static analysis and overall code clarity.

Changes include:

  • Specifying array<string, array<string>> for the internal $messages property.
  • Updating docblocks for the constructor and methods like:
    • keys()
    • merge()
    • get()
    • all()
    • transform()
    • messages()
    • getMessages()

These updates help IDEs and static analysis tools better understand the structure of the messages.

@taylorotwell taylorotwell merged commit 07419b4 into laravel:12.x Apr 9, 2025
60 checks passed
@AJenbo AJenbo deleted the patch-1 branch April 9, 2025 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants