Closed thekid closed 4 years ago
See php/php-src#5061
class T { const TYPE = self::class; public static function new() { return new self(); } } $t= T::TYPE::new(); // a T instance
Previously, this would have required a temporary variable:
$type= T::TYPE; $t= $type::new(); // a T instance
See php/php-src#5061
Previously, this would have required a temporary variable: