1 | <?php declare(strict_types=1); |
||
27 | abstract class BaseCrypt |
||
28 | { |
||
29 | /** |
||
30 | * @return void |
||
31 | */ |
||
32 | 12 | protected function clearErrors(): void |
|
39 | |||
40 | /** |
||
41 | * @return null|string |
||
42 | */ |
||
43 | 4 | protected function getErrorMessage(): ?string |
|
52 | |||
53 | /** |
||
54 | * @param CryptException $exception |
||
55 | * |
||
56 | * @return void |
||
|
|||
57 | */ |
||
58 | 4 | protected function throwException(CryptException $exception): void |
|
62 | |||
63 | /** |
||
64 | * We need this wrapper for testing purposes so we can mock system call to Open SSL. |
||
65 | * |
||
66 | * @return string|false |
||
67 | */ |
||
68 | 11 | protected function openSslErrorString() |
|
72 | } |
||
73 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.