Skip to content

[BUG] deprecation warning with PHP 8.1: Passing null to parameter #2 ($code) of type int is deprecated in app/Models/Feed.php on line 350 #4299

@candrews

Description

@candrews

Describe the bug
Running /app/actualize_script.php results in this:

PHP Deprecated:  Exception::__construct(): Passing null to parameter #2 ($code) of type int is deprecated in /var/www/localhost/htdocs/FreshRSS/app/Models/Feed.php on line 350

To Reproduce
Steps to reproduce the behavior:

  1. Run /app/actualize_script.php

Expected behavior
There shouldn't be any warning.

Screenshots
n/a

Environment information (please complete the following information):

  • Device: Linux server
  • OS: Gentoo
  • Browser: n/a
  • FreshRSS version: current edge: ab7d9c3
  • Database version: n/a
  • PHP version: PHP 8.1.4
  • Installation type: ?

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions