xp-framework/core

Function ReflectionType::__toString() is deprecated

thekid opened this issue · 1 comments

(As of PHP 7.4.0)

For arguments:

newinstance('lang.Runnable', [], [
  'test' => function(string $arg) { },
  'run' => function() { }
]);

For return types:

newinstance('lang.Runnable', [], [
  'test' => function($arg): string { },
  'run' => function() { }
]);