1 | <?php |
||
19 | class Certificate |
||
20 | { |
||
21 | /** |
||
22 | * File to decode. |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $file; |
||
27 | |||
28 | /** |
||
29 | * Password to the decode the file. |
||
30 | * |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $password; |
||
34 | |||
35 | /** @var string */ |
||
36 | protected $strategy; |
||
37 | |||
38 | /** |
||
39 | * Create a new certificate instance. |
||
40 | * |
||
41 | * @param string $file |
||
42 | * @param string $password |
||
43 | * @param string $strategy |
||
44 | */ |
||
45 | public function __construct(string $file, string $password = null, string $strategy = null) |
||
53 | |||
54 | /** |
||
55 | * @return CerStrategy|KeyStrategy|null |
||
56 | */ |
||
57 | protected function getStrategy() |
||
74 | |||
75 | public function decode(): string |
||
79 | |||
80 | /** |
||
81 | * @param string $directory |
||
82 | * @param string $filename |
||
83 | * |
||
84 | * @return integer|bool |
||
85 | */ |
||
86 | public function save(string $directory, string $filename = null) |
||
96 | |||
97 | /** |
||
98 | * @param string $name |
||
99 | * @param array $arguments |
||
100 | */ |
||
101 | public function __call(string $name, array $arguments) |
||
111 | |||
112 | protected function getFileExtensionName() |
||
116 | } |
||
117 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..