Back to Psalm

InvalidNamedArgument

docs/running_psalm/issues/InvalidNamedArgument.md

6.16.1245 B
Original Source

InvalidNamedArgument

Emitted when a supplied function/method argument name is incompatible with the function/method signature.

php
<?php

function takesArguments(string $name, int $age) : void {}

takesArguments(name: "hello", ag: 5);