This commit is contained in:
Dennis Eichhorn 2023-08-28 22:06:36 +00:00
parent ce8d25a7c0
commit 4c895234c5
2 changed files with 3 additions and 3 deletions

View File

@ -288,6 +288,8 @@ final class Application
*
* @return void
*
* @throws PathException
*
* @since 1.0.0
*/
private function loadLanguageFromPath(string $language, string $path) : 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';