@ -24,15 +24,10 @@ use Composer\Semver\VersionParser;
*/
class InstalledVersions
{
private static $installed = array();
private static $installed;
private static $canGetVendors;
private static $installedByVendor = array();
/**
* Initialize $installed array
*/
public static function initializeInstalled() {}
/**
* Returns a list of all package names which are present, either by being installed, replaced or provided
*
@ -253,6 +248,10 @@ class InstalledVersions
{
@trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
if (null === self::$installed) {
self::$installed = include __DIR__ . '/installed.php';
}
return self::$installed;
}
@ -260,7 +259,7 @@ class InstalledVersions
* Returns the raw data of all installed.php which are currently loaded for custom implementations