Skip to content

Conversation

@thekid
Copy link
Member

@thekid thekid commented Sep 30, 2019

Example:

$instance= new class() {

  #[@test]
  public function fixture() { }
};

$annotations= typeof($instance)->getMethod('fixture')->getAnnotations();
// ['test' => null]

@thekid thekid merged commit 59e861b into xp-framework:master Oct 1, 2019
@thekid thekid deleted the feature/anonymous-class-annotations branch October 1, 2019 10:59
thekid added a commit that referenced this pull request Oct 2, 2019
thekid added a commit that referenced this pull request Oct 4, 2019
Backport #226: Annotations from anonymous classes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant