Skip to content

Commit 97a2aac

Browse files
committed
Merge branch 'master' into simplesamlphp-3.0
2 parents e3ab993 + 2f79d30 commit 97a2aac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SimpleSAML/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ public static function getInstance(string $instancename = 'simplesaml'): Configu
379379
*/
380380
public function getVersion(): string
381381
{
382-
$version = \Composer\InstalledVersions::getRootPackage()['pretty_version'];
382+
$version = \Composer\InstalledVersions::getPrettyVersion('simplesamlphp/simplesamlphp');
383383
// If the returned version is in format `vX.Y.Z`, remove leading
384384
// `v` to keep the compatibility with the previously used
385385
// format `X.Y.Z`.

0 commit comments

Comments
 (0)