nextcloud/server

Migrations generated via occ fail psalm validation

開放

#34,555 建立於 2022年10月12日

 (3 則留言) (0 個反應) (0 位負責人)PHP (4,865 個分叉)batch import
1. to developfeature: install and updategood first issueneeds reviewtechnical debt

倉庫指標

星標
 (34,953 顆星)
PR 合併指標
 (平均合併 20天) (30 天內合併 627 個 PR)

描述

Actually such migrations fail psalm:

Error: ….php:42:56: MoreSpecificImplementedParamType: Argument 2 of …::changeSchema has the more specific type 'Closure():OCP\DB\ISchemaWrapper', expecting 'Closure' as defined by OCP\Migration\SimpleMigrationStep::changeSchema (see https://psalm.dev/140)

So I guess we have to revert it or update the base class as well?

Originally posted by @nickvergessen in https://github.com/nextcloud/server/issues/34488#issuecomment-1275904697

貢獻者指南