nextcloud/server

Migrations generated via occ fail psalm validation

Aberta

#34.555 aberto em 12 de out. de 2022

 (3 comentários) (0 reação) (0 responsável)PHP (4.865 forks)batch import
1. to developfeature: install and updategood first issueneeds reviewtechnical debt

Métricas do repositório

Stars
 (34.953 estrelas)
Métricas de merge de PR
 (Mesclagem média 20d) (627 fundiu PRs em 30d)

Description

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

Guia do colaborador