Skip to content

Bug with specifying returned classes when generating a Request class #4

@SDParish

Description

@SDParish

In GenerateRequests.php::handleResponse()

Code does (currently line 294)

$response_models[] = "'$code_string' => '$type'";

Except $type has been set as one of:

$type = "\\$model_ns\\$type::class";
$type = "''";

Where the quotation marks are either not wanted, or already included.

I believe the fix should be simply to remove the ' from around $type in the line

$response_models[] = "'$code_string' => '$type'";

referred to above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions