Commit 344aa6d0 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

Issue #3167117 by jasonluttrell, maxilein, Gábor Hojtsy: Various small notices...

Issue #3167117 by jasonluttrell, maxilein, Gábor Hojtsy: Various small notices and a lack of update function even though state data format changed
parent e6d9c1f0
......@@ -273,7 +273,7 @@ final class DeprecationAnalyzer {
exec($this->binPath . '/phpstan analyse --error-format=json -c ' . $this->phpstanNeonPath . ' ' . $project_dir, $output);
$json = json_decode(implode('', $output), TRUE);
if (!isset($json['files']) || !is_array($json['files'])) {
$this->logger->error('PHPStan failed: %results', ['%results' => print_r($result, TRUE)]);
$this->logger->error('PHPStan failed: %results', ['%results' => print_r($output, TRUE)]);
$json = ['files' => [], 'totals' => ['file_errors' => 0]];
}
$result = [
......
......@@ -507,7 +507,7 @@ class UpgradeStatusForm extends FormBase {
if ($step_label[2] == $key) {
foreach ($projects as $name => $project) {
if ($project->info['upgrade_status_next'] == $next_step) {
$cell_data[$next_step]++;
@$cell_data[$next_step]++;
}
}
}
......
......@@ -64,3 +64,10 @@ function upgrade_status_update_8101() {
}
}
}
/**
* Delete old state information so the changed storage format can be used.
*/
function upgrade_status_update_8301() {
\Drupal::keyValue('upgrade_status_scan_results')->deleteAll();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment