Skip to content
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

occ guests:list execute return type exception #1101

Closed
joshtrichards opened this issue Jan 17, 2024 · 0 comments · Fixed by #1102
Closed

occ guests:list execute return type exception #1101

joshtrichards opened this issue Jan 17, 2024 · 0 comments · Fixed by #1102
Assignees
Labels
bug Something isn't working

Comments

@joshtrichards
Copy link
Member

joshtrichards commented Jan 17, 2024

 # sudo -u www-data php --define apc.enable_cli=1 /var/www/cloud.domain.tld/occ guests:list

No guests created
An unhandled exception has been thrown:
TypeError: Return value of "OCA\Guests\Command\ListCommand::execute()" must be of the type int, "null" returned. in /var/www/cloud.domain.tld3rdparty/symfony/console/Command/Command.php:301
Stack trace:
#0 /var/www/cloud.domain.tld/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run()
#1 /var/www/cloud.domain.tld/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run()
#2 /var/www/cloud.domain.tld/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#3 /var/www/cloud.domain.tld/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#4 /var/www/cloud.domain.tld/lib/private/Console/Application.php(206): Symfony\Component\Console\Application->run()
#5 /var/www/cloud.domain.tld/console.php(100): OC\Console\Application->run()
#6 /var/www/cloud.domain.tld/occ(11): require_once('...')

Originally posted by @JRGonz in nextcloud/server#42858 (comment)

@joshtrichards joshtrichards self-assigned this Jan 17, 2024
joshtrichards added a commit that referenced this issue Jan 17, 2024
Fixes #1101

Return types required in Symfony >=5

Signed-off-by: Josh <josh.t.richards@gmail.com>
@joshtrichards joshtrichards added the bug Something isn't working label Jan 17, 2024
icewind1991 pushed a commit that referenced this issue Feb 5, 2024
Fixes #1101

Return types required in Symfony >=5

Signed-off-by: Josh <josh.t.richards@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant