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) |
||
51 | |||
52 | /** |
||
53 | * @return CerStrategy|KeyStrategy|null |
||
54 | */ |
||
55 | protected function getStrategy() |
||
74 | |||
75 | public function decode(): string |
||
82 | |||
83 | /** |
||
84 | * @param string $directory |
||
85 | * @param string $filename |
||
86 | * |
||
87 | * @return integer|bool |
||
88 | */ |
||
89 | public function save(string $directory, string $filename = null) |
||
99 | |||
100 | /** |
||
101 | * @param string $name |
||
102 | * @param array $arguments |
||
103 | */ |
||
104 | public function __call(string $name, array $arguments) |
||
114 | |||
115 | protected function getFileExtensionName() |
||
119 | } |
||
120 |
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..