Skip to content

UnusedParam

A function parameter is never referenced in the function body.

<?php
function greet(string $name, string $title): string {
return "Hello!"; // $name and $title are ignored
}

Remove the unused parameter or use it in the function body.