Make requirements checker return error if there were failed checks (#196)

This commit is contained in:
MaximAL 2019-03-06 20:01:30 +03:00 committed by Alexander Makarov
parent 603f13964b
commit 36365e5aa7

View File

@ -157,4 +157,6 @@ if (!version_compare(phpversion(), '5.5', '>=')) {
);
}
$requirementsChecker->checkYii()->check($requirements)->render();
$result = $requirementsChecker->checkYii()->check($requirements)->getResult();
$requirementsChecker->render();
exit($result['summary']['errors'] === 0 ? 0 : 1);