-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MetadataInterface::getSpace() return type incorrect #91
Comments
Interesting - thanks for the report! I hadn't experienced this previously, but certainly anything requested from an entry should be a resolved resource, not just the link. |
https://github.com/usemarkup/contentful/blob/master/src/ResourceBuilder.php#L67 |
^ going to put up a PR to this effect for review, as it appears to resolve the issue locally, but I'm not 100% clear on the original intent here. EDIT: retracting this, as it seemed to cause issues elsewhere. It does seem "more correct" to return the Space here than an unresolved Link, but it seems like fixing this is causing issues further downstream. |
Just to better illustrate the above: #92 |
Trying to get a smaller replication case, but currently seeing a case where
Markup/Contentful/DynamicEntry->getSpace()
returnsMarkup/Contentful/Link
which is not of typeMarkup/Contentful/SpaceInterface
as expected.The text was updated successfully, but these errors were encountered: