<?php declare(strict_types = 1);
class Foo
{
public function bar(): int
{
return 5;
}
}
/**
* @mixin Foo
*/
class Bar
{
/**
* @param mixed[] $args
* @return mixed
*/
public static function __callStatic(string $method, $args)
{
$instance = new Foo;
return $instance->$method(...$args);
}
}
Bar::bar();
Feature request
For the given code:
https://phpstan.org/r/856294ef-b9e3-4d5f-94d9-2dcae85f72cb
I'd expect no errors. (https://3v4l.org/MRhFu)