Skip to content
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

[9.x] Passing null to parameter #1 ($string) of type string is deprecated #43510

Closed
kayw-geek opened this issue Aug 2, 2022 · 1 comment
Closed

Comments

@kayw-geek
Copy link
Contributor

PHP version: 8.1.7
Laravel version: v9.21.6

Description:

We have a problem that passing null to non-nullable parameters of built-in functions, the causes the log file to become very large, I try to fix it, but you don't seem to agree with my approach, Can you tell me what I should do?

#43508
#43507

@driesvints
Copy link
Member

Typecast your value before calling the methods.

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

No branches or pull requests

2 participants