<?php
function fromCallable(callable $callback): void
{
$closure = $callback(...);
}
Analysis lead to such error :
[ERROR] Cannot analyse data source "issue.php" for following reason(s)
* Object of class PhpParser\Node\Expr\Variable could not be converted to string from file "phar:///phpcompatinfo-7.1.phar/src/Application/DataCollector/Normalizer/NodeNormalizer.php" at line 153
! [NOTE] Issue found by phpCompatInfo version 7.1.4@9875282 with DB version 6.5.0@542ea75
PHP 8.1 feature First-class Callable syntax could not be detected due to an error in AST parsing.
For example with source file :
Analysis lead to such error :