@@ -41,7 +41,7 @@ |
||
41 | 41 | * @param InputInterface $input |
42 | 42 | * @param OutputInterface $output |
43 | 43 | * |
44 | - * @return int|null|void |
|
44 | + * @return boolean|null |
|
45 | 45 | * |
46 | 46 | * @throws Exception |
47 | 47 | */ |
@@ -6,11 +6,11 @@ |
||
6 | 6 | use GuzzleHttp\Client; |
7 | 7 | use Spatie\CertificateChain\Certificate; |
8 | 8 | use Spatie\CertificateChain\CertificateChain; |
9 | +use Spatie\CertificateChain\Exceptions\CouldNotRunCommand; |
|
9 | 10 | use Symfony\Component\Console\Command\Command; |
10 | 11 | use Symfony\Component\Console\Input\InputArgument; |
11 | 12 | use Symfony\Component\Console\Input\InputInterface; |
12 | 13 | use Symfony\Component\Console\Output\OutputInterface; |
13 | -use Spatie\CertificateChain\Exceptions\CouldNotRunCommand; |
|
14 | 14 | use Symfony\Component\Console\Question\ConfirmationQuestion; |
15 | 15 | |
16 | 16 | class ResolveCommand extends Command |
@@ -150,6 +150,9 @@ |
||
150 | 150 | return "-----BEGIN {$type}-----\n{$pem}-----END {$type}-----\n"; |
151 | 151 | } |
152 | 152 | |
153 | + /** |
|
154 | + * @param \Closure $callable |
|
155 | + */ |
|
153 | 156 | protected function guardAgainstUserErrorsFromPhpSeclib($callable) |
154 | 157 | { |
155 | 158 | set_error_handler(function ($errno, $errstr, $errfile, $errline) { |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Spatie\CertificateChain; |
4 | 4 | |
5 | +use Spatie\CertificateChain\Exceptions\CouldNotCreateCertificate; |
|
6 | +use Spatie\CertificateChain\Exceptions\CouldNotLoadCertificate; |
|
5 | 7 | use phpseclib\File\ASN1; |
6 | 8 | use phpseclib\File\X509; |
7 | -use Spatie\CertificateChain\Exceptions\CouldNotLoadCertificate; |
|
8 | -use Spatie\CertificateChain\Exceptions\CouldNotCreateCertificate; |
|
9 | 9 | |
10 | 10 | class Certificate |
11 | 11 | { |