Skip to content

[5.x] Prevent null in strtolower() #11869

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
Jun 12, 2025
Merged

[5.x] Prevent null in strtolower() #11869

merged 1 commit into from
Jun 12, 2025

Conversation

martinoak
Copy link
Contributor

Since PHP 8.2, passing null to parameter #1 ($string) of type string in strtolower() is deprecated, this throws the error. A simple not null check fixes the problem.

Since PHP 8.2, passing null to parameter statamic#1 ($string) of type string in strtolower() is deprecated, this throws the error. A simple not null check fixes the problem.
@jasonvarga jasonvarga merged commit 25fd696 into statamic:5.x Jun 12, 2025
25 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