Skip to content

PHPLIB-1238: Order internal methods after non-internal methods #1162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 15, 2023

Conversation

jmikola
Copy link
Member

@jmikola jmikola commented Sep 15, 2023

@jmikola jmikola marked this pull request as ready for review September 15, 2023 05:27
return '1' . $method->getName();
}
$prefix = $method->isPrivate() ? '2' : ($method->isProtected() ? '1' : '0');
$prefix .= str_contains($method->getDocComment(), '@internal') ? '1' : '0';
Copy link
Member Author

Choose a reason for hiding this comment

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

@GromNaN: I saw your comment in PHPLIB-1238 but it didn't seem pertinent. The first character here is used to sort on visibility, and the second reports whether @internal is used.

Copy link
Member

Choose a reason for hiding this comment

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

Ok sounds good

Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

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

LGTM

@jmikola jmikola merged commit 21781c9 into mongodb:master Sep 15, 2023
@jmikola jmikola deleted the phplib-1238 branch September 15, 2023 15:01
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