Skip to content

Commit 0b8b5d4

Browse files
committed
Merge branch '3.3' into 3.4
* 3.3: Misspelled word Display a better error design when the toolbar cannot be displayed do not validate empty values [Cache] fix cleanup of expired items for PdoAdapter [Dotenv] clean up before running assertions [Console] fix description of INF default values parse escaped quotes in unquoted env var values [PropertyAccess] Fix TypeError discard [Validator] Throw exception on Comparison constraints null options [FrameworkBundle] Display a proper warning on cache:clear without the --no-warmup option [Security] Fix Firewall ExceptionListener priority Identify tty tests in Component/Process [Workflow] Added more events to the announce function [Validator] Remove property path suggestion for using the Expression validator [WebProfilerBundle] Fix css trick used for offsetting html anchor from fixed header [Security] Fix annotation
2 parents 4868186 + b6e95a5 commit 0b8b5d4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Command/CacheClearCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
7777
if ($input->getOption('no-warmup')) {
7878
$filesystem->rename($realCacheDir, $oldCacheDir);
7979
} else {
80-
@trigger_error('Calling cache:clear without the --no-warmup option is deprecated since version 3.3. Cache warmup should be done with the cache:warmup command instead.', E_USER_DEPRECATED);
80+
$warning = 'Calling cache:clear without the --no-warmup option is deprecated since version 3.3. Cache warmup should be done with the cache:warmup command instead.';
81+
82+
@trigger_error($warning, E_USER_DEPRECATED);
83+
84+
$io->warning($warning);
8185

8286
$this->warmupCache($input, $output, $realCacheDir, $oldCacheDir);
8387
}

0 commit comments

Comments
 (0)