Skip to content

Conversation

@rullzer
Copy link
Member

@rullzer rullzer commented Oct 9, 2022

Related to #34487

Signed-off-by: Roeland Jago Douma <[email protected]>
@rullzer rullzer added enhancement 3. to review Waiting for reviews labels Oct 9, 2022
@rullzer rullzer added this to the Nextcloud 26 milestone Oct 9, 2022
@CarlSchwan CarlSchwan merged commit 84f3f6e into master Oct 10, 2022
@CarlSchwan CarlSchwan deleted the typehint_closures branch October 10, 2022 11:15
@nickvergessen
Copy link
Member

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?

@rullzer
Copy link
Member Author

rullzer commented Oct 12, 2022

Update the base class I guess. As the typehint is still correct.

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 enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants