Skip to content

Fix some deprecations#1372

Merged
julien-nc merged 3 commits intomainfrom
carl/port-deprecated
Mar 13, 2026
Merged

Fix some deprecations#1372
julien-nc merged 3 commits intomainfrom
carl/port-deprecated

Conversation

@CarlSchwan
Copy link
Member

Keep old compatibility for now, but at least allow us to drop some OC_Util methods at some point

@CarlSchwan CarlSchwan self-assigned this Mar 12, 2026
@CarlSchwan CarlSchwan requested a review from julien-nc March 12, 2026 10:56
@CarlSchwan CarlSchwan force-pushed the carl/port-deprecated branch from 5b422f5 to a306dbc Compare March 12, 2026 10:57
@julien-nc
Copy link
Member

Thank you!
Psalm is now failing when the new classes are missing in old NC versions.
Would some stubs be ok to fix the psalm errors?

CarlSchwan and others added 3 commits March 13, 2026 15:48
OC_Util is on the way out

Signed-off-by: Carl Schwan <carlschwan@kde.org>
Signed-off-by: Carl Schwan <carlschwan@kde.org>
…on includes them, trust the unit/integration tests to spot issues with the new methods/classes

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc julien-nc force-pushed the carl/port-deprecated branch from a306dbc to ba4d3db Compare March 13, 2026 14:50
@julien-nc
Copy link
Member

I hope you don't mind: I have rebased this branch on main and added a fix suggestion.

Since we have the unit/integrations tests that are supposed to fail if we use missing classes/methods, it seems fine to just ignore the UndefinedClass and UndefinedDocblockClass psalm issues.
We can stop ignoring those when min-nc becomes 34.

@CarlSchwan
Copy link
Member Author

Thanks for rebassing, looks fine to me

@julien-nc julien-nc merged commit 123f687 into main Mar 13, 2026
45 checks passed
@julien-nc julien-nc deleted the carl/port-deprecated branch March 13, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants