diff --git a/system/Exceptions/FrameworkException.php b/system/Exceptions/FrameworkException.php index d9396712aa0e..4cafd71177e2 100644 --- a/system/Exceptions/FrameworkException.php +++ b/system/Exceptions/FrameworkException.php @@ -47,6 +47,9 @@ public static function forInvalidDirectory(string $path) return new static(lang('Core.invalidDirectory', [$path])); } + /** + * @return static + */ public static function forCopyError(string $path) { return new static(lang('Core.copyError', [$path])); diff --git a/user_guide_src/source/outgoing/response/003.php b/user_guide_src/source/outgoing/response/003.php index e5bff8cabf2f..da5819d98860 100644 --- a/user_guide_src/source/outgoing/response/003.php +++ b/user_guide_src/source/outgoing/response/003.php @@ -6,5 +6,6 @@ ]; return $this->response->setJSON($data); + // or return $this->response->setXML($data);