Skip to content

Commit

Permalink
Merge pull request #6 from ideb/unsupported-operand-types
Browse files Browse the repository at this point in the history
Fix error: Unsupported operand types in ProbeController::getModuleDetails()
  • Loading branch information
Lappro authored Feb 8, 2019
2 parents f4a98e6 + 5d07bd1 commit 14a6adb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Controller/ProbeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,18 +331,20 @@ protected function getDblogDailyAverage() {

/**
* Helper to get additional details from all modules.
*
* @param \Drupal\Core\Extension\Extension[] $modules
* An array of Extensions.
*
* @return array[]
* An associative array of module details keyed by module machine name.
*/
protected function getModuleDetails(array $modules) {
$systemInfo = system_get_info('module');
$detailedModules = [];

/** @var \Drupal\Core\Extension\Extension $module */
foreach ($modules as $module) {
// Copy the time to the probe ui expected key.
$data = unserialize($module->serialize());

$detailedModules[$module->getName()] = [
'info' => $data + $systemInfo[$module->getName()],
'info' => $systemInfo[$module->getName()],
'path' => DRUPAL_ROOT . '/' . $module->getPath(),
];
}
Expand Down

0 comments on commit 14a6adb

Please sign in to comment.