8000 [12.x] Add param type for `assertJsonStructure` & `assertExactJsonStructure` methods by milwad-dev · Pull Request #55743 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[12.x] Add param type for assertJsonStructure & assertExactJsonStructure methods #55743

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

Merged
merged 1 commit into from
May 15, 2025

Conversation

milwad-dev
Copy link
Contributor
@milwad-dev milwad-dev commented May 15, 2025

This pull request introduces parameter type hints for the assertJsonStructure and assertExactJsonStructure methods in Laravel’s testing framework. The $structure parameter exactly determines the type.

This change is backward-compatible and non-breaking. It aligns with Laravel’s continuous improvement of type safety

Copy link

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

788F

@milwad-dev milwad-dev marked this pull request as ready for review May 15, 2025 12:21
@taylorotwell taylorotwell merged commit f43f238 into laravel:12.x May 15, 2025
61 checks passed
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
0