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 ccfa3eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/N98/Magento/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Application extends BaseApplication
*/
protected $autoloader;

protected ?Config $config;
protected ?Config $config = null;

/**
* @see Application::setConfigurationLoader
Expand Down
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 ccfa3eb

Please sign in to comment.