1 | <?php |
||
7 | class FieldParserFixedText extends AbstractFieldParser implements FieldParserInterface |
||
8 | { |
||
9 | /** |
||
10 | * @return float |
||
11 | */ |
||
12 | 1 | public function getFontSize() |
|
16 | |||
17 | /** |
||
18 | * @return string |
||
19 | */ |
||
20 | 2 | public function getFontFace() |
|
24 | |||
25 | /** |
||
26 | * @return int |
||
27 | */ |
||
28 | 3 | public function getOrientation() |
|
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | 2 | public function getText() |
|
54 | } |
||
55 |
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: