diff --git a/requirements.php b/requirements.php index 91a0fb0..ac16b8b 100644 --- a/requirements.php +++ b/requirements.php @@ -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);