Skip to content

Conversation

xurshudyan
Copy link
Contributor

Since Laravel 13 requires PHP 8.3, these methods are always available. This commit removes redundant function_exists() checks and simplifies the affected methods accordingly.

@xurshudyan xurshudyan marked this pull request as draft March 3, 2025 13:48
@xurshudyan
Copy link
Contributor Author

Why are the tests failing?

@browner12
Copy link
Contributor

failures appear to be unrelated to your changes. sometimes this happens. I'd move the PR out of draft, and let the Laravel team re-trigger the CI suite.

@xurshudyan xurshudyan marked this pull request as ready for review March 4, 2025 05:04
@taylorotwell taylorotwell merged commit 79be624 into laravel:master Mar 4, 2025
33 checks passed
}

return true;
return json_validate($value, 512);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we remove the 512 here? That's the default and we don't include it in the changes in ValidatesAttributes.php in this PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd agree. I imagine a PR for this would get accepted.

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.

4 participants