Skip to content

[Bug]: Too many arguments to "command-runner:capture-status" command #9

@stareu

Description

@stareu

What happened?

I created a Command Runner command for a test console command that just outputs a log.
I tried to name the command both "php artisan app:test" and "app:test".
After running the command, this error is displayed in laravel.log:
Too many arguments to "command-runner:capture-status" command, expected arguments "id" "code". {"exception":"[object] (Symfony\\Component\\Console\\Exception\\RuntimeException(code: 0): Too many arguments to \"command-runner:capture-status\" command, expected arguments \"id\" \"code\". at C:/myapp/vendor/symfony/console/Input/ArgvInput.php:199)

How to reproduce the bug

  1. Install filament-command-runner
  2. Create a test console command with a log in "handle" method
  3. Go to Command Runner in admin panel and run your test console command
  4. Check /storage/logs/laravel.log with the error

Package Version

1.1.1

PHP Version

8.4.17

Laravel Version

12.47.0

Which operating systems does with happen with?

Windows

Notes

I'm using a Laravel React Starter Kit with Inertia.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions