Skip to content

Add types to ViewErrorBag#55329

Merged
taylorotwell merged 1 commit into
laravel:12.xfrom
AJenbo:patch-2
Apr 9, 2025
Merged

Add types to ViewErrorBag#55329
taylorotwell merged 1 commit into
laravel:12.xfrom
AJenbo:patch-2

Conversation

@AJenbo

@AJenbo AJenbo commented Apr 8, 2025

Copy link
Copy Markdown
Contributor

This PR adds type annotations to the ViewErrorBag class to improve static analysis and developer experience.

Changes include:

  • Updating the $bags property docblock to array<string, \Illuminate\Contracts\Support\MessageBag>.
  • Updating the return type for the getBags() methods to reflect the same.

I don't think the failing test has anything to do with what I'm doing here.

@taylorotwell taylorotwell merged commit 0cfb741 into laravel:12.x Apr 9, 2025
@AJenbo AJenbo deleted the patch-2 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants