xp-framework / core

The XP Framework is an all-purpose, object oriented PHP framework.
Other
19 stars 6 forks source link

Function ReflectionType::__toString() is deprecated #254

Closed thekid closed 3 years ago

thekid commented 3 years ago

(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() { }
]);
thekid commented 3 years ago

Released in https://github.com/xp-framework/core/releases/tag/v10.5.1