Closed ging-dev closed 3 weeks ago
<?php function a($a) { /** @var string */ return $a ??= match ($b = 1) { // $a must be assign as string by @var string, but $b is affected. '' => 'foo', default => 'bar', }; }
thanks! fixed