Make requirements checker return error if there were failed checks (#196)
This commit is contained in:
parent
603f13964b
commit
36365e5aa7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user