Avoid downgrading from error to warning
parent
da94e4b619
commit
284da1487c
|
@ -474,10 +474,10 @@ EOT
|
||||||
|
|
||||||
if ($hadError) {
|
if ($hadError) {
|
||||||
$io->write('<error>FAIL</error>');
|
$io->write('<error>FAIL</error>');
|
||||||
$this->exitCode = 2;
|
$this->exitCode = max($this->exitCode, 2);
|
||||||
} elseif ($hadWarning) {
|
} elseif ($hadWarning) {
|
||||||
$io->write('<warning>WARNING</warning>');
|
$io->write('<warning>WARNING</warning>');
|
||||||
$this->exitCode = 1;
|
$this->exitCode = max($this->exitCode, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($result) {
|
if ($result) {
|
||||||
|
@ -716,7 +716,7 @@ EOT
|
||||||
*
|
*
|
||||||
* @return bool|string
|
* @return bool|string
|
||||||
*/
|
*/
|
||||||
private function checkConnectivity()
|
private function checkConnectivity()
|
||||||
{
|
{
|
||||||
if (!ini_get('allow_url_fopen')) {
|
if (!ini_get('allow_url_fopen')) {
|
||||||
$result = '<info>Skipped because allow_url_fopen is missing.</info>';
|
$result = '<info>Skipped because allow_url_fopen is missing.</info>';
|
||||||
|
|
Loading…
Reference in New Issue