From 40cf7a1c0bfdc9b453a10c45dbea07ede39fc427 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 28 Aug 2023 22:06:34 +0000 Subject: [PATCH] update --- Models/Event.php | 2 ++ tests/Autoloader.php | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Models/Event.php b/Models/Event.php index 6dc401f..c891515 100755 --- a/Models/Event.php +++ b/Models/Event.php @@ -350,6 +350,8 @@ class Event * * @return void * + * @throws InvalidEnumValue + * * @since 1.0.0 */ public function setType(int $type) : 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';