nextcloud/server

Migrations generated via occ fail psalm validation

Open

#34.555 geöffnet am 12. Okt. 2022

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)PHP (4.865 Forks)batch import
1. to developfeature: install and updategood first issueneeds reviewtechnical debt

Repository-Metriken

Stars
 (34.953 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 17T 3h) (606 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide