This commit is contained in:
Dennis Eichhorn 2023-08-28 22:06:34 +00:00
parent 1cc0e18dae
commit 40cf7a1c0b
2 changed files with 3 additions and 3 deletions

View File

@ -350,6 +350,8 @@ class Event
*
* @return void
*
* @throws InvalidEnumValue
*
* @since 1.0.0
*/
public function setType(int $type) : void

View File

@ -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';