Completed
Push — master ( bc8922...0303f9 )
by Emily
02:07
created

ReflectionFile   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 13
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Spaark\CompositeUtils\Model\Reflection;
4
5
use Spaark\CompositeUtils\Model\Collection\Collection;
6
7
class ReflectionFile extends Reflector
8
{
9
    /**
10
     * @var NamespaceBlock[]
11
     * @readable
12
     */
13
    protected $namespaces;
14
15 6
    public function __construct()
16
    {
17 6
        $this->namespaces = new Collection();
0 ignored issues
show
Documentation Bug introduced by
It seems like new \Spaark\CompositeUti...Collection\Collection() of type object<Spaark\CompositeU...\Collection\Collection> is incompatible with the declared type array<integer,object<Spa...ection\NamespaceBlock>> of property $namespaces.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
18 6
    }
19
}
20