Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21d2c88

Browse files
authored
[GH-7486] Bugfix: failing the command when clearing empty cache is wrong semantics. (#8376)
1 parent e7d33eb commit 21d2c88

3 files changed

Lines changed: 0 additions & 18 deletions

File tree

lib/Doctrine/ORM/Tools/Console/Command/ClearCache/MetadataCommand.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
9999
$message = ($result) ? 'Successfully flushed cache entries.' : $message;
100100
}
101101

102-
if ( ! $result) {
103-
$ui->error($message);
104-
105-
return 1;
106-
}
107-
108102
$ui->success($message);
109103

110104
return 0;

lib/Doctrine/ORM/Tools/Console/Command/ClearCache/QueryCommand.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
9898
$message = ($result) ? 'Successfully flushed cache entries.' : $message;
9999
}
100100

101-
if ( ! $result) {
102-
$ui->error($message);
103-
104-
return 1;
105-
}
106-
107101
$ui->success($message);
108102

109103
return 0;

lib/Doctrine/ORM/Tools/Console/Command/ClearCache/ResultCommand.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
9999
$message = ($result) ? 'Successfully flushed cache entries.' : $message;
100100
}
101101

102-
if ( ! $result) {
103-
$ui->error($message);
104-
105-
return 1;
106-
}
107-
108102
$ui->success($message);
109103

110104
return 0;

0 commit comments

Comments
 (0)