1 | <?php |
||
19 | class Certificate |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $file; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $password; |
||
30 | |||
31 | /** |
||
32 | * Create a new certificate instance. |
||
33 | * |
||
34 | * @param string $file |
||
35 | * @param string $password |
||
36 | */ |
||
37 | public function __construct(string $file, string $password = null) |
||
42 | |||
43 | /** |
||
44 | * @return CerStrategy|KeyStrategy|null |
||
45 | */ |
||
46 | protected function getStrategy() |
||
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | public function decode() : string |
||
76 | |||
77 | /** |
||
78 | * @param string $filename |
||
79 | * |
||
80 | * @return |
||
81 | */ |
||
82 | public function save(string $filename) |
||
86 | |||
87 | /** |
||
88 | * @param string $name |
||
89 | * @param array $arguments |
||
90 | */ |
||
91 | public function __call(string $name, array $arguments) |
||
101 | } |
||
102 |
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..