Skip to content

Encoder fails to encode empty data if field set is specified #50

@neomerx

Description

@neomerx

Test snippet

$actual = $endcoder->encode([], null, null, new EncodingParameters(null, [
    // include only these attributes and links
    'authors' => [Author::ATTRIBUTE_FIRST_NAME, Author::LINK_COMMENTS],
]));

PHP Fatal error: Call to a member function getIncludePaths() on a non-object in /json-api/src/Encoder/Encoder.php on line 196

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions