We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54415c1 commit 301e481Copy full SHA for 301e481
src/PhpWord/Settings.php
@@ -424,19 +424,21 @@ public static function loadConfig($filename = null)
424
if ($configFile !== null) {
425
$config = @parse_ini_file($configFile);
426
if ($config === false) {
427
- return $config;
+ return array();
428
}
429
430
431
// Set config value
432
+ $appliedConfig = array();
433
foreach ($config as $key => $value) {
434
$method = "set{$key}";
435
if (method_exists(__CLASS__, $method)) {
436
self::$method($value);
437
+ $appliedConfig[$key] = $value;
438
439
440
441
+ return $appliedConfig;
442
443
444
/**
0 commit comments