Hi,
When we use match
statement with instanceof
condition, PHPTool must use it to retrieve the right type.
$test = [ 'a' ];
match(true)
{
$test instanceof \ArrayObject => myFunction($test), // $test type equals \ArrayObject
is_array($test) => myFunction(new \ArrayObject($test)), // $test type equals array
};
This is only to reproduce the issue
Thank you for the fix.