Skip to content

Conversation

kilya11
Copy link
Contributor

@kilya11 kilya11 commented Sep 8, 2025

Sorts @property annotations by name in PHPDoc blocks alphabetically within groups separated by empty lines.

Original:

/**
 * @property int $second
 * @property string $first
 *
 * @property array $third
 * @property bool $fourth
 */

fixed:

/**
 * @property string $first
 * @property int $second
 *
 * @property bool $fourth
 * @property array $third
 */

@kubawerlos kubawerlos merged commit 2f3c7d8 into kubawerlos:main Sep 11, 2025
18 checks passed
@kubawerlos
Copy link
Owner

Thanks @kilya11, nice addition 👍🏼

@kilya11 kilya11 deleted the phpdoc-sorter branch September 12, 2025 06:31
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