The variable $logFn does not exist. Did you forget to declare it?
This check marks access to variables or properties that have not been declared yet. While PHP
has no explicit notion of declaring a variable, accessing it before a value is assigned
to it is most likely a bug.
Loading history...
20
continue;
21
}
22
if ($record['Status'] === 'Queued') {
23
$obj->State = 'Queued';
24
} elseif ($record['Status'] === 'Started') {
25
$obj->State = 'Deploying';
26
} elseif ($record['Status'] === 'Finished') {
27
$obj->State = 'Completed';
28
} elseif ($record['Status'] === 'Failed') {
29
$obj->State = 'Failed';
30
}
31
$obj->write();
32
33
// Blank out the old column, as it has been successfully migrated.
34
// Note that the field no longer exists on the DNDeployment object, so we have to
35
// manually run the update on the database.
36
DB::query(sprintf('UPDATE "DNDeployment" SET "Status" = NULL WHERE "ID" = %s', $record['ID']));
37
38
$log(sprintf('DNDeployment record %s has been successfully migrated', $record['ID']));
39
}
40
41
$log('Finished. Please delete the DNDeployment.Status column from the database');
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.