Commit d82bd52
authored
Fix deprecation warning in PHP 8.3 by ensuring string type in explode() (laravel#55939)
PHP 8.3 introduces a deprecation warning when null is passed to the second parameter of explode(). This change ensures type safety by casting potential null values to strings before calling explode().
This fix ensures compatibility with PHP 8.3 and maintains backward compatibility with previous versions.1 parent c7598e4 commit d82bd52
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments