Use short array syntax (#135)

This commit is contained in:
Simon Schaufelberger
2018-02-10 19:05:19 +01:00
committed by Kevin Papst
parent 4c6158c1ea
commit 5527f29caf
14 changed files with 33 additions and 34 deletions

View File

@@ -114,13 +114,13 @@ class DoctrineCompilerPass implements CompilerPassInterface
$ormConfig = $container->getDefinition('doctrine.orm.default_configuration');
foreach ($sql['string_functions'] as $name => $function) {
$ormConfig->addMethodCall('addCustomStringFunction', array($name, $function));
$ormConfig->addMethodCall('addCustomStringFunction', [$name, $function]);
}
foreach ($sql['numeric_functions'] as $name => $function) {
$ormConfig->addMethodCall('addCustomNumericFunction', array($name, $function));
$ormConfig->addMethodCall('addCustomNumericFunction', [$name, $function]);
}
foreach ($sql['datetime_functions'] as $name => $function) {
$ormConfig->addMethodCall('addCustomDatetimeFunction', array($name, $function));
$ormConfig->addMethodCall('addCustomDatetimeFunction', [$name, $function]);
}
}
}