File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,9 @@ public function __construct(PackageProvider $packageProvider)
31
31
*/
32
32
public function getIntegrationVersion ()
33
33
{
34
- return $ this ->packageProvider ->getOroPackages ()[$ this ->getIntegrationName ()]->getFullPrettyVersion ();
34
+ $ integrationDetails = $ this ->packageProvider ->getOroPackages ()[$ this ->getIntegrationName ()];
35
+
36
+ return is_array ($ integrationDetails ) ? $ integrationDetails ['pretty_version ' ] : $ integrationDetails ->getFullPrettyVersion ();
35
37
}
36
38
37
39
/**
@@ -48,7 +50,7 @@ public function getMolliePackageVersion()
48
50
$ molliePackage = $ packageInterfaces ['mollie/orocommerce ' ];
49
51
}
50
52
51
- return $ molliePackage ? $ molliePackage ->getFullPrettyVersion () : null ;
53
+ return $ molliePackage ? ( is_array ( $ molliePackage) ? $ molliePackage [ ' pretty_version ' ] : $ molliePackage ->getFullPrettyVersion () ) : null ;
52
54
}
53
55
54
56
/**
You can’t perform that action at this time.
0 commit comments