You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great SDK implementation, better than the contentful one. I ran into an issue with the Management SDK.
When I use an int as the value for an EntryField, an Exception is thrown because the parseContent function attempts to interpret the value as an array.
PHP Warning: Invalid argument supplied for foreach() in /home/daan/git/talpa/dancedancedance-s2-middleware-php/vendor/incraigulous/contentful-sdk/src/PayloadBuilders/EntryField.php on line 101
I can work around it by explicitly casting to a string when setting the value, but a better way would be to fix this in the EntryField class perhaps.
The text was updated successfully, but these errors were encountered:
Hi,
Great SDK implementation, better than the contentful one. I ran into an issue with the Management SDK.
When I use an int as the value for an EntryField, an Exception is thrown because the
parseContent
function attempts to interpret the value as an array.PHP Warning: Invalid argument supplied for foreach() in /home/daan/git/talpa/dancedancedance-s2-middleware-php/vendor/incraigulous/contentful-sdk/src/PayloadBuilders/EntryField.php on line 101
I can work around it by explicitly casting to a string when setting the value, but a better way would be to fix this in the EntryField class perhaps.
The text was updated successfully, but these errors were encountered: