]> git.mxchange.org Git - core.git/blobdiff - framework/main/classes/factories/objects/class_ObjectFactory.php
Continued:
[core.git] / framework / main / classes / factories / objects / class_ObjectFactory.php
index e453d9e8dd074443b358bf8c0c62e30174dadbb5..b10907b53e53795695f6ea2f9984300264b9a214 100644 (file)
@@ -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);