HiVolker and I would like to start discussion on our RFC to "Support Closures in constant expressions".
Please find the following resources for your reference: - RFC: https://wiki.php.net/rfc/closures_in_const_expr - Implementation: https://github.com/php/php-src/pull/16458 Best regards Tim Düsterhus