diff --git a/lib/Migration/Version000400Date20230406000000.php b/lib/Migration/Version000400Date20230406000000.php
index c8ca44756b..effa746575 100644
--- a/lib/Migration/Version000400Date20230406000000.php
+++ b/lib/Migration/Version000400Date20230406000000.php
@@ -37,14 +37,17 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
$column = $table->getColumn('selection_options');
$column->setLength(65535);
+ /** @psalm-suppress InvalidArgument Change to ColumnType enum when the app supports NC >= 35 */
$column->setType(Type::getType('text'));
$column = $table->getColumn('selection_default');
$column->setLength(65535);
+ /** @psalm-suppress InvalidArgument Change to ColumnType enum when the app supports NC >= 35 */
$column->setType(Type::getType('text'));
$column = $table->getColumn('text_default');
$column->setLength(65535);
+ /** @psalm-suppress InvalidArgument Change to ColumnType enum when the app supports NC >= 35 */
$column->setType(Type::getType('text'));
}
diff --git a/lib/Migration/Version000800Date20240213123743.php b/lib/Migration/Version000800Date20240213123743.php
index d265cc873b..b76b7fef04 100644
--- a/lib/Migration/Version000800Date20240213123743.php
+++ b/lib/Migration/Version000800Date20240213123743.php
@@ -13,6 +13,7 @@
use Doctrine\DBAL\Schema\SchemaException;
use Doctrine\DBAL\Schema\Table;
use OCP\DB\ISchemaWrapper;
+use OCP\DB\Schema\ITable;
use OCP\DB\Types;
use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
@@ -39,7 +40,7 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt
return $schema;
}
- protected function shouldAddTable(string $tableName, ISchemaWrapper $schema): ?Table {
+ protected function shouldAddTable(string $tableName, ISchemaWrapper $schema): Table|ITable|null {
return !$schema->hasTable($tableName) ? $schema->createTable($tableName) : null;
}
diff --git a/psalm.xml b/psalm.xml
index c5e79501f8..69eb8bb116 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -45,6 +45,7 @@
+