1 | <?php |
||
19 | class SwaggerController |
||
20 | { |
||
21 | /* |
||
22 | * @var Finder |
||
23 | */ |
||
24 | private $finder; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $rootDir; |
||
30 | |||
31 | /** |
||
32 | * @param Finder $finder symfony/finder instance |
||
33 | * @param string $rootDir symfomy root dir |
||
34 | */ |
||
35 | public function __construct(Finder $finder, $rootDir) |
||
40 | |||
41 | /** |
||
42 | * @return JsonResponse Response with result or error |
||
|
|||
43 | */ |
||
44 | public function swaggerAction() |
||
63 | } |
||
64 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.