Unnamed boolean argument (ARCH7185)
Esta página aún no está disponible en tu idioma.
Key php.quality.named-boolean-parameter · Severity info · Category quality
Bare true/false arguments at a call hide what they control. Use PHP 8 named arguments or introduce an enum.
Incorrect
Section titled “Incorrect”<?php$report = generateReport($data, true, false);Correct
Section titled “Correct”<?php$report = generateReport($data, includeTotals: true, draft: false);Use named arguments at the call site, or replace the boolean flag with an enum.