Completed
Pull Request — master (#14)
by Scott
02:44
created

PhanJsonTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
namespace exussum12\CoverageChecker\tests;
3
4
use exussum12\CoverageChecker\PhanJsonLoader;
5
6
class PhanJsonTest extends PhanTextTest
7
{
8
    /** @var  PhanJsonTest */
9
    protected $phan;
10
    protected function setUp()
11
    {
12
        parent::setUp();
13
        $this->phan = new PhanJsonLoader(__DIR__ . '/fixtures/phan.json');
0 ignored issues
show
Documentation Bug introduced by
It seems like new \exussum12\CoverageC... '/fixtures/phan.json') of type object<exussum12\CoverageChecker\PhanJsonLoader> is incompatible with the declared type object<exussum12\Coverag...ker\tests\PhanJsonTest> of property $phan.

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...
14
    }
15
}
16