Skip to content

Conversation

@MusikAnimal
Copy link
Member

@MusikAnimal MusikAnimal commented Dec 30, 2025

The convention now for methods with attributes is to have first the
OpenAPI attributes (if applicable), the routing attributes, followed by
the PHP doc block.

Use more of PHP 8+ features like str_starts_with and first class
callable syntax.

@MusikAnimal MusikAnimal force-pushed the mediawiki-coding-conventions branch 3 times, most recently from 9f7fea3 to 11a8094 Compare December 30, 2025 21:42
@MusikAnimal MusikAnimal changed the title Switch to MediaWiki coding style, fix linter errors Switch to MediaWiki coding style, use OpenAPI attributes Dec 30, 2025
@MusikAnimal MusikAnimal force-pushed the mediawiki-coding-conventions branch 2 times, most recently from b531934 to ba5c1a1 Compare December 30, 2025 23:53
The convention now for methods with attributes is to have first the
OpenAPI attributes (if applicable), the routing attributes, followed by
the PHP doc block.

Use more of PHP 8+ features like str_starts_with and first class
callable syntax.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants