Hi,
Just found 2 issues with Closure:
<?php
declare(strict_types=1);
namespace Devsense\Builtin\Closure;
use Closure;
final class MyClass
{
/**
* @var Closure[]
*/
public const array CALLS = [];
}
$call = function (string $value) {};
$call(null);
$value = true;
$call($value);
We should have errors with $call(...).
Another issue is related to the use Closure statement, it raises PHP7101.

Thank you for the fixes.