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 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $strategy; |
||
39 | |||
40 | /** |
||
41 | * Create a new certificate instance. |
||
42 | * |
||
43 | * @param string $file |
||
44 | * @param string $password |
||
45 | * @param string $strategy |
||
46 | */ |
||
47 | public function __construct(string $file, string $password = null, string $strategy = null) |
||
53 | |||
54 | /** |
||
55 | * @return CerStrategy|KeyStrategy|null |
||
56 | */ |
||
57 | protected function getStrategy() |
||
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | public function decode() : string |
||
87 | |||
88 | /** |
||
89 | * @param string $directory |
||
90 | * @param string $filename |
||
91 | * |
||
92 | * @return integer|bool |
||
93 | */ |
||
94 | public function save(string $directory, string $filename = null) |
||
104 | |||
105 | /** |
||
106 | * @param string $name |
||
107 | * @param array $arguments |
||
108 | */ |
||
109 | public function __call(string $name, array $arguments) |
||
119 | |||
120 | /** |
||
121 | * @return string |
||
122 | */ |
||
123 | protected function getFileExstensionName() |
||
127 | } |
||
128 |
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..