#yi_best-practices

1 messages ¡ Page 1 of 1 (latest)

ebon sandalBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1408280792290820106

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

safe furnace
#

hello! how can I help?

summer basin
#

Sorry, I want to know why metadata values must be string type.

We were often set the value with int before, but now, we can't, because SDK has changed the filed type hint.

#

The problem is we have to map the metadata value to ensure the value type is string. Otherwise, there is PHPStan error.

safe furnace
#

this is a public channel, please don't include secret keys in your message

safe furnace
#

sorry, but i'm a little bit confused. What do you mean by the SDK has changed the filed type hint?

summer basin
#

That's PHP SDK (17.5

#

I think it's more reasonable that the metadata type is array<string, mixed>