1--TEST-- 2Subclass Transliterator 3--EXTENSIONS-- 4intl 5--FILE-- 6<?php 7class ChildTransliterator extends Transliterator 8{ 9 public readonly string $id; 10 11 public static function new() 12 { 13 $tr = (new \ReflectionClass(ChildTransliterator::class))->newInstanceWithoutConstructor(); 14 $tr->id = 'abc'; 15 16 return $tr; 17 } 18} 19 20 21$tr = ChildTransliterator::new(); 22 23var_dump($tr->id); 24?> 25--EXPECT-- 26string(3) "abc" 27