Commit 1a16d48
committed
Fix deprecation: strlen with null
PHP 8.1 logs a deprecation message:
> PHP Deprecated: strlen(): Passing null to parameter #1 ($string)
> of type string is deprecated
> in vendor/vgrem/php-spo/src/Runtime/Http/Requests.php on line 137
We fix that by casting the variable to string.
Related: #2931 parent 1b4e681 commit 1a16d48
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
0 commit comments