1.2.583. Interface Arguments

This rule lists variables that are arguments in an interface.

<?php

interface i {
    function interfaceMethod($interfaceArgument) ;
}

class foo extends i {
    // Save function as above, but the variable is not reported
    function interfaceMethod($notAnInterfaceArgument) {}
}

?>

1.2.583.1. Specs

Short name

Variables/InterfaceArguments

Rulesets

All, Changed Behavior

Exakat since

0.8.4

PHP Version

All

Severity

Time To Fix

Precision

Very high

Features

interface

Available in

Entreprise Edition, Exakat Cloud