fix(ns): root-qualify PHP builtins after PSR-4 move

Namespaced classes resolved DateTimeImmutable etc. under AKSRT\*
(e.g. Credits\DateTimeImmutable). Prefix with \ globally.
This commit is contained in:
kate522 committed 2026-07-17 15:05:03 +08:00
1 parent 0335517467
commit da59d550ad
7 files changed
+15 -15

No files matched your search

+1 -1
View File
@@ -282,7 +282,7 @@ class AI {
'success' => true,
'content' => $text,
];
} catch (Throwable $t) {
} catch (\Throwable $t) {
return [
'success' => false,
'message' => $t->getMessage() ?: __('WordPress AI Client 调用失败', 'aksrt'),