You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -167,7 +167,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
167
167
$notice = sprintf('Storing translations files for "%s" in the "%s" directory is deprecated since Symfony 4.2, ', $dir, $bundle->getName());
168
168
@trigger_error($notice.($this->defaultTransPath ? sprintf('use the "%s" directory instead.', $this->defaultTransPath) : 'configure and use "framework.translator.default_path" instead.'), E_USER_DEPRECATED);
@@ -180,15 +180,15 @@ protected function execute(InputInterface $input, OutputInterface $output)
180
180
// such a bundle does not exist, so treat the argument as path
181
181
$path = $input->getArgument('bundle');
182
182
183
-
$transPaths = array($path.'/translations');
183
+
$transPaths = [$path.'/translations'];
184
184
if (is_dir($dir = $path.'/Resources/translations')) {
185
185
if ($dir !== $this->defaultTransPath) {
186
186
@trigger_error(sprintf('Storing translations in the "%s" directory is deprecated since Symfony 4.2, use the "%s" directory instead.', $dir, $path.'/translations'), E_USER_DEPRECATED);
187
187
}
188
188
$transPaths[] = $dir;
189
189
}
190
190
191
-
$viewsPaths = array($path.'/templates');
191
+
$viewsPaths = [$path.'/templates'];
192
192
if (is_dir($dir = $path.'/Resources/views')) {
193
193
if ($dir !== $this->defaultViewsPath) {
194
194
@trigger_error(sprintf('Storing templates in the "%s" directory is deprecated since Symfony 4.2, use the "%s" directory instead.', $dir, $path.'/templates'), E_USER_DEPRECATED);
@@ -227,7 +227,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
0 commit comments