🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Variadic argument's type can be narrowed #14744

Description

@vudaltsov

Feature request

function f(mixed ...$args): void
{
    \PHPStan\dumpType($args);
}

Currently outputs: array<int|string, mixed>

Could be: array<non-negative-int|non-empty-string, mixed>.

Did PHPStan help you today? Did it make you happy in any way?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions