-
Notifications
You must be signed in to change notification settings - Fork 2
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
3.0.194 found 2 PHP-8 deprecation warnings #1531
Comments
I found some more. The following belong to PW core:
possible fix:
The following belongs to RepeaterMatrix:
possible fix:
And the last one for this time belongs to FieldtypeCombo:
possible fix:
|
Horst, thanks for the report. Ryan, those two are already reported in #1467 (comment) |
@horst-n Thanks, I've pushed a fix for these and have also updated the matrix & combo modules, so those will appear in the next versions of those as well. |
Thanks @ryancramerdesign ! |
Short description of the issue
I used PW 3.0.194 against PHP 8.1.12 and got two deprecation warnings
a)
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in ... wire-3.0.194\core\PagesPathFinder.php on line 1928
b)
Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in ... wire-3.0.194\modules\LanguageSupport\LanguageSupportPageNames.module on line 515
Optional: Suggestion for a possible fix
I could fix these with
a)
1928: if(is_null($segment) || !strlen($segment)) continue;
b)
515: if($name == Pages::defaultRootName || is_null($name) || !strlen($name)) return '/';
The text was updated successfully, but these errors were encountered: