Skip to content

[BUG] deprecation warnings with PHP 8.1 #4010

@candrews

Description

@candrews

Describe the bug
Deprecation warnings are reported.

I'm using current master, commit c5ca737 with PHP 8.1.0.

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
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
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
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/SimplePie/SimplePie/Enclosure.php on line 1155
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/SimplePie/SimplePie/Enclosure.php on line 1155
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/SimplePie/SimplePie/Enclosure.php on line 1155
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/SimplePie/SimplePie/Enclosure.php on line 1155
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/SimplePie/SimplePie/Enclosure.php on line 1155
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/SimplePie/SimplePie/Enclosure.php on line 1155
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/SimplePie/SimplePie/Enclosure.php on line 1155
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/SimplePie/SimplePie/Enclosure.php on line 1155
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/SimplePie/SimplePie/Enclosure.php on line 1155
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/SimplePie/SimplePie/Enclosure.php on line 1155
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/SimplePie/SimplePie/Enclosure.php on line 1155
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/SimplePie/SimplePie/Enclosure.php on line 1155
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/SimplePie/SimplePie/Enclosure.php on line 1155
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/SimplePie/SimplePie/Enclosure.php on line 1155
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/localhost/htdocs/FreshRSS/lib/SimplePie/SimplePie/Enclosure.php on line 1155

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):

  • Device: Linux
  • OS: Linux
  • Browser: n/a
  • FreshRSS version: current master, c5ca737
  • Database version: MariaDB 10.6.5
  • PHP version: 8.1.0
  • Installation type: self hosted

Additional context
n/a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions