Closed candrews closed 2 years ago
I also tried with current edge, commit f6db32bdfba803aff558f608f90632a50a8a5e4c and still got deprecation messages:
PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/Minz/Request.php on line 418
FreshRSS starting feeds actualization at 2021-12-01T01:02:11+00:00
PHP Deprecated: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/Minz/Request.php on line 457
FreshRSS actualize candrews...
PHP Deprecated: Return type of Minz_Pdo::exec($statement) should either be compatible with PDO::exec(string $statement): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/localhost/htdocs/FreshRSS/lib/Minz/Pdo.php on line 43
PHP Deprecated: Return type of Minz_Pdo::lastInsertId($name = null) should either be compatible with PDO::lastInsertId(?string $name = null): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/localhost/htdocs/FreshRSS/lib/Minz/Pdo.php on line 31
PHP Deprecated: Return type of Minz_Pdo::prepare($statement, $driver_options = []) should either be compatible with PDO::prepare(string $query, array $options = []): PDOStatement|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/localhost/htdocs/FreshRSS/lib/Minz/Pdo.php on line 38
PHP Deprecated: Return type of Minz_Pdo::query($query, $fetch_mode = null, ...$fetch_mode_args) should either be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs): PDOStatement|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/localhost/htdocs/FreshRSS/lib/Minz/Pdo.php on line 48
Thanks for the bug report. Could you please test with those two patches:
After applying those two patches, now I only get one deprecation message:
PHP Deprecated: strtr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/lib_rss.php on line 168
Thanks @candrews , please try again (I do not have a PHP 8.1 setup to test at the moment)
When I apply the 2 PRs now, I don't receive any deprecation messages. It looks good :+1:
Thank you!
I encountered a new deprecation notice. I didn't catch it before as it seems to only happen sometimes (I'm guessing only when new items appear in the feed):
PHP Deprecated: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/app/Models/Feed.php on line 408
More PHP 8.1 issues can be caught with https://github.com/FreshRSS/FreshRSS/pull/4121
Describe the bug Deprecation warnings are reported.
I'm using current
master
, commit c5ca73706277486ed59e4581bfa42cc127726b38 with PHP 8.1.0.To Reproduce Using PHP 8.1, run
actualize_script.php
Expected behavior No deprecation or other errors should be reported.
Screenshots n/a
Environment information (please complete the following information):
master
, c5ca73706277486ed59e4581bfa42cc127726b38Additional context n/a