1 | <?php |
||
15 | class WordPoints_Hook_Hit_Logger { |
||
16 | |||
17 | /** |
||
18 | * The fire for which a hit might occur. |
||
19 | * |
||
20 | * @since 1.0.0 |
||
21 | * |
||
22 | * @var WordPoints_Hook_Fire |
||
23 | */ |
||
24 | protected $fire; |
||
25 | |||
26 | /** |
||
27 | * @param WordPoints_Hook_Fire $fire The fire that might be logged as a hit. |
||
28 | */ |
||
29 | public function __construct( WordPoints_Hook_Fire $fire ) { |
||
33 | |||
34 | /** |
||
35 | * Logs a hit for this fire. |
||
36 | * |
||
37 | * @since 1.0.0 |
||
38 | * |
||
39 | * @return int|false The hit ID, or false if logging the hit failed. |
||
40 | */ |
||
41 | public function log_hit() { |
||
80 | } |
||
81 | |||
83 |
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: