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