Total Complexity | 3 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | final class DummyBufferedHash extends BufferedHash |
||
18 | { |
||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | public function __construct(string $algorithm, string $path) |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | public function verify(string $signature): bool |
||
30 | { |
||
31 | } |
||
1 ignored issue
–
show
|
|||
32 | |||
33 | public function getPublicBufferedData(): string |
||
36 | } |
||
37 | } |
||
38 |
For hinted functions/methods where all return statements with the correct type are only reachable via conditions, ?null? gets implicitly returned which may be incompatible with the hinted type. Let?s take a look at an example: