mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-27 04:28:44 +02:00
⬆️ N°4770 Update to latest Symfony 3.4
This commit is contained in:
@@ -46,7 +46,7 @@ class CacheClearCommand extends ContainerAwareCommand
|
||||
public function __construct($cacheClearer = null, Filesystem $filesystem = null)
|
||||
{
|
||||
if (!$cacheClearer instanceof CacheClearerInterface) {
|
||||
@trigger_error(sprintf('%s() expects an instance of "%s" as first argument since Symfony 3.4. Not passing it is deprecated and will throw a TypeError in 4.0.', __METHOD__, CacheClearerInterface::class), E_USER_DEPRECATED);
|
||||
@trigger_error(sprintf('%s() expects an instance of "%s" as first argument since Symfony 3.4. Not passing it is deprecated and will throw a TypeError in 4.0.', __METHOD__, CacheClearerInterface::class), \E_USER_DEPRECATED);
|
||||
|
||||
parent::__construct($cacheClearer);
|
||||
|
||||
@@ -104,7 +104,7 @@ EOF
|
||||
$fs->remove($oldCacheDir);
|
||||
|
||||
if (!is_writable($realCacheDir)) {
|
||||
throw new RuntimeException(sprintf('Unable to write in the "%s" directory', $realCacheDir));
|
||||
throw new RuntimeException(sprintf('Unable to write in the "%s" directory.', $realCacheDir));
|
||||
}
|
||||
|
||||
$io->comment(sprintf('Clearing the cache for the <info>%s</info> environment with debug <info>%s</info>', $kernel->getEnvironment(), var_export($kernel->isDebug(), true)));
|
||||
@@ -133,7 +133,7 @@ EOF
|
||||
$this->warmup($warmupDir, $realCacheDir, !$input->getOption('no-optional-warmers'));
|
||||
|
||||
if ($this->warning) {
|
||||
@trigger_error($this->warning, E_USER_DEPRECATED);
|
||||
@trigger_error($this->warning, \E_USER_DEPRECATED);
|
||||
$io->warning($this->warning);
|
||||
$this->warning = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user