mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-02 14:25:38 +08:00
stan-fix
This commit is contained in:
@@ -399,6 +399,7 @@ class Framework
|
|||||||
if (isset($translations[$k])) {
|
if (isset($translations[$k])) {
|
||||||
$keys = array_keys($properties);
|
$keys = array_keys($properties);
|
||||||
$keys[array_search($k, $keys, false)] = $translations[$k];
|
$keys[array_search($k, $keys, false)] = $translations[$k];
|
||||||
|
/* @phpstan-ignore-next-line */
|
||||||
$properties = ($t = array_combine($keys, $properties)) ? $t : $properties;
|
$properties = ($t = array_combine($keys, $properties)) ? $t : $properties;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user