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:
1 parent
0335517467
commit
da59d550ad
7 files changed
+15
-15
No files matched your search
+1
-1
@@ -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'),
|
||||
|
||||
Reference in new issue
Block a user