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

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

2021-06-24 Thread 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 get a warning "Cannot bind an instance t