Skip to content

Commit 36365e5

Browse files
maximalsamdark
authored andcommitted
Make requirements checker return error if there were failed checks (yiisoft#196)
1 parent 603f139 commit 36365e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

requirements.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,6 @@
157157
);
158158
}
159159

160-
$requirementsChecker->checkYii()->check($requirements)->render();
160+
$result = $requirementsChecker->checkYii()->check($requirements)->getResult();
161+
$requirementsChecker->render();
162+
exit($result['summary']['errors'] === 0 ? 0 : 1);

0 commit comments

Comments
 (0)