Skip to content

refactor(psalm): Modernize migration doc#58282

Merged
Altahrim merged 1 commit intomasterfrom
carl/refactor-migration
Feb 17, 2026
Merged

refactor(psalm): Modernize migration doc#58282
Altahrim merged 1 commit intomasterfrom
carl/refactor-migration

Conversation

@CarlSchwan
Copy link
Member

And remove all the duplication in the subclasses

  • Resolves: #

Summary

TODO

  • ...

Checklist

And remove all the duplication in the subclasses

Signed-off-by: Carl Schwan <carlschwan@kde.org>
@CarlSchwan CarlSchwan requested a review from a team as a code owner February 12, 2026 10:26
@CarlSchwan CarlSchwan force-pushed the carl/refactor-migration branch from 574f6b2 to f6c839d Compare February 12, 2026 10:26
@CarlSchwan CarlSchwan requested review from ArtificialOwl, come-nc, icewind1991 and salmart-dev and removed request for a team February 12, 2026 10:26
@CarlSchwan CarlSchwan added this to the Nextcloud 34 milestone Feb 12, 2026
@CarlSchwan CarlSchwan added the 3. to review Waiting for reviews label Feb 12, 2026
@CarlSchwan CarlSchwan self-assigned this Feb 12, 2026
@CarlSchwan CarlSchwan mentioned this pull request Feb 12, 2026
10 tasks
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐘

@Altahrim Altahrim merged commit f2907f1 into master Feb 17, 2026
208 of 218 checks passed
@Altahrim Altahrim deleted the carl/refactor-migration branch February 17, 2026 13:58
Comment on lines -38 to -42
* @param IOutput $output
* @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper`
* @psalm-param Closure():ISchemaWrapper $schemaClosure
* @param array $options
* @since 13.0.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The wiping of these comments breaks psalm in apps:

ERROR: MoreSpecificImplementedParamType - lib/Migration/Version23000Date20260123100000.php:37:82 - Argument 3 of OCA\Talk\Migration\Version23000Date20260123100000::postSchemaChange has the more specific type 'array{tablePrefix?: string}', expecting 'array<array-key, mixed>' as defined by OCP\Migration\SimpleMigrationStep::postSchemaChange (see https://psalm.dev/140)
	public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but it should be already inherited from IMigrationStep?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not somehow, #58399 fixed it again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

Comments