1.2.865. Not Same Name As File¶
The class, interface or trait in this file as a different name, case included, than the file name.
In the following example, the file name is Foo.php
.
<?php
// normal host of this file
class Foo {
// some code
}
// case-typo this file
class foo {
// some code
}
// strangely stored class
class foo {
// some code
}
// This is valid name, but there is also a Foo class, and other classe in this file.
interface Foo {}
?>
1.2.865.1. Connex PHP features¶
1.2.865.1.1. Specs¶
Short name |
Classes/SameNameAsFile |
Rulesets |
|
Exakat since |
0.8.4 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |