Elektrine lite

← Feed

@edorian@phpc.social

Post #597222

2026-03-05 17:57 UTC

Last week Sebastian merged a #[DataProvider] feature I wanted since ... PHP 4? That is finally possible now. 🥳 https://github.com/sebastianbergmann/phpunit/pull/6526 Should ship in 13.1, in April. Then say hi to: #[DataProviderClosure(self::callableProvider(...))] Inline closures as well! I'm delighted. One of my goals with the two 8.5 RFCs [1][2] on the matter was to enable exactly this. [1]: https://wiki.php.net/rfc/closures_in_const_expr [2]: First Class Callables in constant expressions (FCC) https://wiki.php.net/rfc/first_class_callable_syntax #PHP #PHPUnit #FCC

Replies (1)