1 | <?php |
||
20 | class AddTagLinks extends AbstractModifier |
||
21 | { |
||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | 2 | public function run(History $history) |
|
36 | |||
37 | /** |
||
38 | * Generate href to a version tag. |
||
39 | * @param History $history history object |
||
40 | * @param string $prev previous tag |
||
41 | * @param string $curr current tag |
||
42 | * @return string |
||
43 | */ |
||
44 | 2 | public function generateTagHref(History $history, $prev, $curr) |
|
62 | } |
||
63 |
If you access a property on an interface, you most likely code against a concrete implementation of the interface.
Available Fixes
Adding an additional type check:
Changing the type hint: