xp-framework/reflection

Undefined index: class@anonymous

Closed this issue · 1 comments

thekid commented

The following raises a lang.IndexOutOfBoundsException with the message Undefined index: class@anonymous in PHP 7:

use lang\Reflection;
use test\Test;

$type= Reflection::type(new class() {

  #[Test]
  public function fixture() { }
});

$test= $type->method('fixture')->annotation(Test::class);