Skip to content

Implement generic method syntax - #48

Merged
thekid merged 2 commits into
masterfrom
feature/generic-methods
Oct 17, 2026
Merged

thekid merged 2 commits into
masterfrom
feature/generic-methods

Conversation

@thekid

@thekid thekid commented Oct 1, 2023

Copy link
Copy Markdown
Member
class Arrays {

  public static function reversed<T>(array<T> $elements) {
    // TBI
  }
}

$reversed= Arrays::reversed<string>(['A', 'B', 'C']);

@thekid
thekid merged commit 43c717b into master Oct 17, 2026
16 checks passed
@thekid
thekid deleted the feature/generic-methods branch October 17, 2026 08:16
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