Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Dec 12, 2024
1 parent 0d36c26 commit df1ce25
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/N98/MagerunBootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@
class MagerunBootstrap
{
/**
* @return Magento\Application
* @throws ErrorException
*/
public static function createApplication(?ClassLoader $classLoader = null)
public static function createApplication(?ClassLoader $classLoader = null): Application
{
if (!$classLoader instanceof ClassLoader) {
$classLoader = self::getLoader();
Expand All @@ -33,7 +32,7 @@ public static function createApplication(?ClassLoader $classLoader = null)
/**
* @throws ErrorException
*/
public static function getLoader(): string
public static function getLoader(): ClassLoader
{
$projectBasedir = __DIR__ . '/../..';
if (!($loader = self::includeIfExists($projectBasedir . '/vendor/autoload.php'))
Expand All @@ -49,7 +48,7 @@ public static function getLoader(): string
return $loader;
}

public static function includeIfExists(string $file): ?string
public static function includeIfExists(string $file): ?ClassLoader
{
if (file_exists($file)) {
return include $file;
Expand Down

0 comments on commit df1ce25

Please sign in to comment.