--TEST-- Closure in property initializer may access private variables --FILE-- secret, PHP_EOL; }; public function __construct( private string $secret, ) {} } $c = new C('secret'); ($c->d)($c); ?> --EXPECTF-- secret