1 | <?php |
||
8 | class LcsService |
||
9 | { |
||
10 | /** |
||
11 | * @var MatchStrategyInterface |
||
12 | */ |
||
13 | protected $matchStrategy; |
||
14 | |||
15 | /** |
||
16 | * LcsService constructor. |
||
17 | * |
||
18 | * @param MatchStrategyInterface $matchStrategy |
||
|
|||
19 | */ |
||
20 | 7 | public function __construct(MatchStrategyInterface $matchStrategy = null) |
|
28 | |||
29 | /** |
||
30 | * @param array $a |
||
31 | * @param array $b |
||
32 | * |
||
33 | * @return array |
||
34 | */ |
||
35 | 7 | public function longestCommonSubsequence(array $a, array $b) |
|
68 | |||
69 | /** |
||
70 | * @param $c |
||
71 | * @param $a |
||
72 | * @param $b |
||
73 | * @param $i |
||
74 | * @param $j |
||
75 | * @param $matches |
||
76 | */ |
||
77 | 7 | protected function compileMatches($c, $a, $b, $i, $j, &$matches) |
|
88 | } |
||
89 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.