@haosun on WordPress.org
Mentioned in [51586] on Core SVN:Code Modernization: Rename the `readonly()` function to `wp_readonly()`.
6 months ago
Created ticket #53858 on Core Trac:PHP 8.1: syntax error due to new 'readonly' property