Skip to content

Add Methods::class() and Methods::instance() to enumerate methods - #53

Merged
thekid merged 3 commits into
mainfrom
feature/select-methods
Nov 15, 2026
Merged

thekid merged 3 commits into
mainfrom
feature/select-methods

Conversation

@thekid

@thekid thekid commented Nov 15, 2026

Copy link
Copy Markdown
Member

Before:

foreach($type->methods() as $method) {
  $modifiers= $method->modifiers();
  if ($modifiers->isStatic() || !$modifiers->isPublic()) continue;

  // ...
}

After:

foreach($type->methods()->instance(MODIFIER_PUBLIC) as $method) {
  // ...
}

@thekid
thekid merged commit ba15213 into main Nov 15, 2026
16 checks passed
@thekid
thekid deleted the feature/select-methods branch November 15, 2026 11:28
@thekid

thekid commented Nov 15, 2026

Copy link
Copy Markdown
Member Author

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.

1 participant