Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Plugin Laravel Laravel Package

psalm/plugin-laravel

Psalm plugin for Laravel that adds deep framework-aware static analysis plus taint-based security scanning. Detects SQL injection, XSS, SSRF, shell injection, file traversal, and open redirects by tracking user input flows across functions and services.

View on GitHub
Deep Wiki
Context7

title: InvalidConsoleArgumentName parent: Custom Issues nav_order: 2

InvalidConsoleArgumentName

Emitted when $this->argument('name') references an argument that is not defined in the command's signature.

Why this is a problem

If you request an argument that doesn't exist in your command's $signature, Laravel will throw a RuntimeException at runtime. This check catches the mismatch during static analysis.

Examples

// Bad — 'username' is not defined in the signature
class GreetCommand extends Command
{
    protected $signature = 'greet {name}';

    public function handle(): void
    {
        $user = $this->argument('username'); // InvalidConsoleArgumentName
    }
}
// Good — argument name matches the signature
class GreetCommand extends Command
{
    protected $signature = 'greet {name}';

    public function handle(): void
    {
        $user = $this->argument('name');
    }
}

How to fix

  1. Check the $signature property of your command for the correct argument name
  2. Either fix the argument() call to match the signature, or add the missing argument to the signature
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport