1 | <?php |
||
7 | class SearchResultTest extends \PHPUnit_Framework_TestCase |
||
8 | { |
||
9 | /** |
||
10 | * @var SumoCoders\FrameworkSearchBundle\Entity\SearchResult |
||
11 | */ |
||
12 | private $searchResult; |
||
13 | |||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | private $defaultData = array( |
||
18 | 'class' => 'User', |
||
19 | 'id' => 1, |
||
20 | 'bundle' => 'users', |
||
21 | 'title' => 'J. Doe', |
||
22 | 'route' => '/en/users/1', |
||
23 | 'weight' => 100, |
||
24 | ); |
||
25 | |||
26 | /** |
||
27 | * Test the getters and setters |
||
28 | */ |
||
29 | public function testGettersAndSetters() |
||
47 | } |
||
48 |
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..