Re: [PHP-DEV] Checking that Closure is static

2021-06-24 Thread Dmitry Eliseev
чт, 24 июн. 2021 г. в 17:38, Claude Pache : > Le 18 juin 2021 à 16:35, Дмитрий Елисеев a écrit : > > Hello! When I use a static anonymous function as an HTTP-action in > some frameworks like: > > $app = new App(); > $app->get('/', static function () { > return new Response('Hello!); > }) > > I g

[PHP-DEV] Re: Checking that Closure is static

2021-06-24 Thread Dmitry Eliseev
18 june 2021 at 17:35, Dmitry Eliseev : > > Hello! When I use a static anonymous function as an HTTP-action in some > frameworks like: > > $app = new App(); > $app->get('/', static function () { >return new Response('Hello!); > }) > > I ge