From 667c180b2b9818a454cf6ffcf70a0e9a7904764a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 28 Aug 2023 22:06:33 +0000 Subject: [PATCH] update --- Admin/Install/WarehouseManagement.php | 2 ++ Controller/ApiPurchaseController.php | 2 ++ tests/Autoloader.php | 4 +--- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Admin/Install/WarehouseManagement.php b/Admin/Install/WarehouseManagement.php index c40c48f..a2ddcb1 100755 --- a/Admin/Install/WarehouseManagement.php +++ b/Admin/Install/WarehouseManagement.php @@ -36,6 +36,8 @@ class WarehouseManagement * * @return void * + * @throws \Exception + * * @since 1.0.0 */ public static function install(ApplicationAbstract $app, string $path) : void diff --git a/Controller/ApiPurchaseController.php b/Controller/ApiPurchaseController.php index 94c3c6d..92a5207 100755 --- a/Controller/ApiPurchaseController.php +++ b/Controller/ApiPurchaseController.php @@ -50,6 +50,8 @@ final class ApiPurchaseController extends Controller * * @api * + * @throws \Exception + * * @since 1.0.0 */ public function apiSupplierBillUpload(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void diff --git a/tests/Autoloader.php b/tests/Autoloader.php index 80a0a1e..d2d0080 100755 --- a/tests/Autoloader.php +++ b/tests/Autoloader.php @@ -71,14 +71,12 @@ final class Autoloader * * @return void * - * @throws AutoloadException Throws this exception if the class to autoload doesn't exist. This could also be related to a wrong namespace/file path correlation. - * * @since 1.0.0 */ public static function defaultAutoloader(string $class) : void { $class = \ltrim($class, '\\'); - $class = \str_replace(['_', '\\'], '/', $class); + $class = \strtr($class, '_\\', '//'); foreach (self::$paths as $path) { $file = $path . $class . '.php';