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

Laravel Psalm plugin for deep static analysis plus taint-based security scanning. Detects SQL injection, XSS, SSRF, shell injection, path traversal, and open redirects by tracking user input through Laravel code without running it.

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.
nexmo/api-specification
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi