Skip to content

[13.x] Improve PHPDoc for "safe" method with conditional return type#59684

Merged
taylorotwell merged 1 commit into
laravel:13.xfrom
leo95batista:13.x
Apr 14, 2026
Merged

[13.x] Improve PHPDoc for "safe" method with conditional return type#59684
taylorotwell merged 1 commit into
laravel:13.xfrom
leo95batista:13.x

Conversation

@leo95batista

Copy link
Copy Markdown
Contributor

This PR improves the PHPDoc of safe() in both Validator and FormRequest by adding a conditional return type.

It helps understand the return type based on the $keys argument, without changing runtime behavior.

@taylorotwell
taylorotwell merged commit 6688450 into laravel:13.x Apr 14, 2026
54 checks passed
jonagoldman pushed a commit to deplox/laravel-framework that referenced this pull request Apr 30, 2026
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