1--TEST-- 2Testing Closure::fromCallable() functionality: Getting non-static method statically 3--FILE-- 4<?php 5 6class A { 7 public function method() { 8 } 9} 10 11try { 12 $fn = Closure::fromCallable(['A', 'method']); 13 $fn(); 14} catch (TypeError $e) { 15 echo $e->getMessage(), "\n"; 16} 17 18?> 19--EXPECT-- 20Failed to create closure from callable: non-static method A::method() cannot be called statically 21