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.
Emitted when $this->argument('name') references an argument that is not defined in the command's signature.
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.
// 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');
}
}
$signature property of your command for the correct argument nameargument() call to match the signature, or add the missing argument to the signatureHow can I help you explore Laravel packages today?