final changes

This commit is contained in:
2026-10-19 12:50:26 +03:30
parent 489662eb38
commit b91dbccb3d
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -81,7 +81,8 @@ class ShayeganClient
{
$payload = [
'Config' => $this->buildConfig(),
'Domain' => $domain,
// JSON object {} — empty PHP array encodes as [] and Shayegan .NET null-refs
'Domain' => $domain === [] ? new \stdClass() : $domain,
];
return $this->request('GET_STYLE', $endpoint, $payload, [