1.2.1363. Used Interfaces¶
Interfaces used in the code.
<?php
interface used {}
// Used by implementation
class c implements used {}
// Used by extension
interface j implements used {}
$x = new c;
// Used in a instanceof
var_dump($x instanceof used);
// Used in a typehint
function foo(Used $x) {}
?>
1.2.1363.1. Specs¶
Short name |
Interfaces/UsedInterfaces |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Features |
interface |
Available in |