1 | <?php |
||
23 | trait ShouldEagerLoad |
||
24 | { |
||
25 | /** |
||
26 | * Checks if an operation has a `force_eager` attribute. |
||
27 | * |
||
28 | * @param string $resourceClass |
||
|
|||
29 | * @param array $options |
||
30 | * |
||
31 | * @return bool |
||
32 | */ |
||
33 | private function getOperationForceEager(ResourceMetadata $resourceMetadata, array $options): bool |
||
45 | |||
46 | /** |
||
47 | * Checkes if the class has an associationMapping with FETCH=EAGER. |
||
48 | * |
||
49 | * @param EntityManager $em |
||
50 | * @param ClassMetadataInfo $classMetadata |
||
51 | * @param array $checked array cache of tested metadata classes |
||
52 | */ |
||
53 | private function hasFetchEagerAssociation(EntityManager $em, ClassMetadataInfo $classMetadata, &$checked = []) |
||
75 | } |
||
76 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.