Skip to content

Conversation

@axlon
Copy link
Contributor

@axlon axlon commented Nov 19, 2025

The Str::replace(...) method returns a string when the subject was a string, otherwise it returns an array. This PR makes PHPStan aware of what the method returns based on the input.

@taylorotwell taylorotwell merged commit 4a0a51f into laravel:12.x Nov 19, 2025
68 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