Why doesn't PHPStorm show value/content of PHP-closures

Short example:

$value = 'Hello World';
$closure = function() use ($value) {
return $value;
};

If I try to debug the above code, the "Variables" window just shows me, that $closure is an instance of the Closure-Class (see Screenshot) but doesn't show me the above function. Any hints how to get more information about the value/content of Variables containing closures in PHPStorm?



Attachment(s):
closure.PNG

Please sign in to leave a comment.