Fix exit codes on PHP 5

This commit is contained in:
Niklas Keller
2016-03-23 22:05:24 +01:00
parent 8549ff9e46
commit 1c4a2387e9
4 changed files with 10 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
namespace Kelunik\AcmeClient\Commands;
use Amp\CoroutineResult;
use Amp\Dns\Record;
use Amp\Dns\ResolutionException;
use InvalidArgumentException;
@@ -58,7 +59,7 @@ class Setup implements Command {
$registration = (yield $acme->register($email));
$this->climate->whisper("Registration successful with the following contact information: " . implode(", ", $registration->getContact()));
return 0;
yield new CoroutineResult(0);
}
private function checkEmail($email) {