Added migrations folder to the static analysis

This commit is contained in:
Alejandro Celaya committed 2020-11-07 10:27:35 +01:00
1 parent 27bc8d4823
commit d99ea82761
3 files changed
+6 -4

No files matched your search

+2 -2
View File
@@ -24,10 +24,10 @@ class Version20171021093246 extends AbstractMigration
return;
}
$shortUrls->addColumn('valid_since', Types::DATETIME, [
$shortUrls->addColumn('valid_since', Types::DATETIME_MUTABLE, [
'notnull' => false,
]);
$shortUrls->addColumn('valid_until', Types::DATETIME, [
$shortUrls->addColumn('valid_until', Types::DATETIME_MUTABLE, [
'notnull' => false,
]);
}
+3 -1
View File
@@ -46,7 +46,9 @@ final class Version20201102113208 extends AbstractMigration
'expiration' => Chronos::now()->toDateTimeString(),
]);
$id = $this->resolveOneApiKeyId($qb->execute());
/** @var Result $result */
$result = $qb->execute();
$id = $this->resolveOneApiKeyId($result);
if ($id === null) {
return;
}