Skip to content

Compact does not always detect variable use correctly #352

@sirbrillig

Description

@sirbrillig

In the following example, all the parameters in the method are used but I get Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed for every parameter.

	public static function get_subscription( $blog_id, $user_id, $product_id, $meta ) {
		return get_data( compact( 'blog_id', 'user_id', 'product_id', 'meta' ) );
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions