Skip to content

Commit c0b37f7

Browse files
authored
Fix static call for non-static method in bin/initMDSPdo.php (#1892)
* Fix static call for non-static method in bin/initMDSPdo.php * Fix phpcs --------- Co-authored-by: Marko Ivančić <marko.ivancic@srce.hr>
1 parent 1fb7e7d commit c0b37f7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

bin/initMDSPdo.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88

99
// Add library autoloader and configuration
1010
require_once $baseDir . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . '_autoload.php';
11-
require_once \SimpleSAML\Utils\Config::getConfigDir() . DIRECTORY_SEPARATOR . 'config.php';
11+
12+
// This is the config dir of the SimpleSAMLphp installation
13+
$configDir = (new \SimpleSAML\Utils\Config())->getConfigDir();
14+
15+
require_once $configDir . DIRECTORY_SEPARATOR . 'config.php';
1216

1317
echo "Initializing Metadata Database..." . PHP_EOL;
1418

0 commit comments

Comments
 (0)