X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=framework%2Fmain%2Fclasses%2Ffactories%2Fobjects%2Fclass_ObjectFactory.php;h=b10907b53e53795695f6ea2f9984300264b9a214;hb=498e6b065ce47804bff4e1073592a2cc8e28f8ef;hp=e453d9e8dd074443b358bf8c0c62e30174dadbb5;hpb=8a70226bd287a3f13b27932e2ec88d16c51c7e39;p=core.git diff --git a/framework/main/classes/factories/objects/class_ObjectFactory.php b/framework/main/classes/factories/objects/class_ObjectFactory.php index e453d9e8..b10907b5 100644 --- a/framework/main/classes/factories/objects/class_ObjectFactory.php +++ b/framework/main/classes/factories/objects/class_ObjectFactory.php @@ -54,7 +54,7 @@ class ObjectFactory extends BaseFactory { * @throws NoClassException If the requested class was not found * @throws InvalidArgumentException If className is empty or the name not following naming-convention */ - public static final function createObjectByName ($fullClassName, array $args = array()) { + public static final function createObjectByName ($fullClassName, array $args = []) { // Is the class name valid and is the class there? if (empty($fullClassName)) { // Throw an exception here @@ -96,7 +96,7 @@ class ObjectFactory extends BaseFactory { * @param $args Arguments in an indexed array * @return $objectInstance An instance of the requested object */ - public static final function createObjectByConfiguredName ($configEntry, array $args = array()) { + public static final function createObjectByConfiguredName ($configEntry, array $args = []) { // Read the configuration entry $fullClassName = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry($configEntry);