* @since 1.27
*/
class ComposerInstalled {
+ /**
+ * @var array[]
+ */
+ private $contents;
/**
* @param string $location
/**
* Dependencies currently installed according to installed.json
*
- * @return array
+ * @return array[]
*/
public function getInstalledDependencies() {
$deps = [];
$deps[$installed['name']] = [
'version' => ComposerJson::normalizeVersion( $installed['version'] ),
'type' => $installed['type'],
- 'licenses' => isset( $installed['license'] ) ? $installed['license'] : [],
- 'authors' => isset( $installed['authors'] ) ? $installed['authors'] : [],
- 'description' => isset( $installed['description'] ) ? $installed['description'] : '',
+ 'licenses' => $installed['license'] ?? [],
+ 'authors' => $installed['authors'] ?? [],
+ 'description' => $installed['description'] ?? '',
];
}