src/EntityCaster.php
Missing class import via use statement (line '41', column '20'). Open
Open
$ref = new \ReflectionClass($c);
- Read upRead up
- Exclude checks
MissingImport
Since: 2.7.0
Importing all external classes in a file through use statements makes them clearly visible.
Example
function make() {
return new \stdClass();
}
Source http://phpmd.org/rules/cleancode.html#MissingImport
Parameter $stub
has undeclared type \Symfony\Component\VarDumper\Cloner\Stub
Open
Open
public function __invoke(Entity $c, array $_, Stub $stub, $isNested)
- Exclude checks
Reference to constant PREFIX_DYNAMIC
from undeclared class \Symfony\Component\VarDumper\Caster\Caster
Open
Open
$a[Caster::PREFIX_DYNAMIC.$key] = $prop;
- Exclude checks
Reference to constant PREFIX_PROTECTED
from undeclared class \Symfony\Component\VarDumper\Caster\Caster
Open
Open
$a[Caster::PREFIX_PROTECTED.'property_types'] = $types;
- Exclude checks
Possibly zero references to use statement for classlike/namespace ClassStub
(\Symfony\Component\VarDumper\Caster\ClassStub)
Open
Open
use Symfony\Component\VarDumper\Caster\ClassStub;
- Exclude checks