Skip to content

Bug: Valet status throws exception #458

@zohaibhassan156

Description

@zohaibhassan156

Valet status throws exception

Distro (Name and version) PHP Version Valet version
Ubuntu 24.04 8.4.21 2.4.4
  • I've checked the issue queue and could not find anything similar to my bug.
  • I'm on the latest version of valet-linux (valet --version): Valet v2.4.4
  • I've run valet fix and valet install after updating and before submitting my issue/feature.

What is the problem?
valet status is throwing exception
Php8.4-fpm is running...
Nginx is running...
Dnsmasq is running...
PHP Fatal error: Uncaught TypeError: The command "status" must return an integer value in the "{closure:Silly\Application::command():72}" method, but "null" was returned. in /home/zohaib/.config/composer/vendor/symfony/console/Command/InvokableCommand.php:63
Stack trace:
#0 /home/zohaib/.config/composer/vendor/symfony/console/Command/Command.php(288): Symfony\Component\Console\Command\InvokableCommand->__invoke()
#1 /home/zohaib/.config/composer/vendor/symfony/console/Application.php(1084): Symfony\Component\Console\Command\Command->run()
#2 /home/zohaib/.config/composer/vendor/symfony/console/Application.php(356): Symfony\Component\Console\Application->doRunCommand()
#3 /home/zohaib/.config/composer/vendor/symfony/console/Application.php(195): Symfony\Component\Console\Application->doRun()
#4 /home/zohaib/.config/composer/vendor/cpriego/valet-linux/cli/valet.php(412): Symfony\Component\Console\Application->run()
#5 {main}
thrown in /home/zohaib/.config/composer/vendor/symfony/console/Command/InvokableCommand.php on line 63

How to reproduce this?
valet status

Sources
PS C:\Users\Zohaib> wsl --version
WSL version: 2.7.5.0
Kernel version: 6.18.26.1-1
WSLg version: 1.0.73
MSRDC version: 1.2.6676
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26100.8246

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions