storyblok / storyblok-php-client

Storyblok - PHP Client
https://www.storyblok.com
MIT License
34 stars 37 forks source link

Fix/avoid array cast #81

Closed roberto-butti closed 1 year ago

roberto-butti commented 1 year ago

Pull request type

Jira Link: INT-

How to test this PR

Created a test case Integration: check casting after enriching content in tests/Storyblok/Integration/ClientTest.php

What is the new behavior?

While enrich content is called, a cast was added to the array also for scalar fields. The side effect is that for _uid and component field, the string was cast as an array with one string element.

Other information