Skip to content

[Bug] Uncaught TypeError when using --no-default-feeds option when using CLI to create a user #7428

@Ezwen

Description

@Ezwen

Describe the bug

When trying to create a user using create-user.php on a fresh new and empty FreshRSS instance, if I use the option --no-default-feeds, I obtain the following error:

#  docker exec --user www-data freshrss cli/create-user.php --user admin --password admin --no-default-feeds
PHP Fatal error:  Uncaught TypeError: Cannot assign string to property CliOptionsParser@anonymous::$noDefaultFeeds of type bool in /var/www/FreshRSS/cli/CliOptionsParser.php:107
Stack trace:
#0 /var/www/FreshRSS/cli/CliOptionsParser.php(22): CliOptionsParser->appendTypedValidValues()
#1 /var/www/FreshRSS/cli/create-user.php(51): CliOptionsParser->__construct()
#2 /var/www/FreshRSS/cli/create-user.php(6): CliOptionsParser@anonymous->__construct()
#3 {main}
  thrown in /var/www/FreshRSS/cli/CliOptionsParser.php on line 107

Using Docker image docker.io/freshrss/freshrss:1.26.0.

To Reproduce

  1. Run cli/create-user.php --user admin --password admin --no-default-feeds

Expected behavior

No error.

FreshRSS version

1.26.0

System information

  • Database version: MariaDB 11.7
  • PHP version: 8.2.26
  • Installation type: Docker
  • Web server type: Traefik
  • Device: N/A
  • OS: Debian 12
  • Browser: N/A

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions