QuackatronHQ / Gigarepo

Invalid typehint detected in arrow function PHP-T1000
Bug risk
Critical
1 occurrence in this check
Deprecated in PHP 8.0: Required parameter $z follows optional parameter $y
112
113    public function requireParamAfterOptional(): int
114    {
115        $sum = fn (int $x, int $y = 0, int $z): int => $x + $y + $z;116
117        return $sum(2, 4, 6);
118    }