1 | <?php |
||
12 | class SchemaValidityFunctionalTest extends WebTestCase |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var \Doctrine\Common\Persistence\ObjectManager |
||
17 | */ |
||
18 | private $em; |
||
19 | |||
20 | /** |
||
21 | * {@inheritDoc} |
||
22 | */ |
||
23 | public function setUp() |
||
32 | |||
33 | /** |
||
34 | * @test |
||
35 | */ |
||
36 | public function theSchemaShouldBeValid() |
||
41 | |||
42 | /** |
||
43 | * {@inheritDoc} |
||
44 | */ |
||
45 | protected function tearDown() |
||
50 | } |
||
51 |
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.