Skip to content

Commit

Permalink
Update compliance.php
Browse files Browse the repository at this point in the history
Signed-off-by: Nathanael Esayeas <nathanael.esayeas@protonmail.com>
  • Loading branch information
ghostwriter committed Jul 8, 2022
1 parent 0dc6b27 commit 41932ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/compliance.php
Expand Up @@ -5,19 +5,19 @@

namespace Ghostwriter\Compliance;

use Ghostwriter\Container\Container;
use function dirname;
use function sprintf;

/** @var null|string $_composer_autoload_path */
/** @var ?string $_composer_autoload_path */
(static function (string $composerAutoloadPath): void {
/** @psalm-suppress UnresolvableInclude */
require $composerAutoloadPath ?: fwrite(
STDERR,
sprintf('[ERROR]Cannot locate "%s"\n please run "composer install"\n', $composerAutoloadPath)
) && exit(1);

/**
* #BlackLivesMatter.
*/
Compliance::main(Container::getInstance());
Compliance::main();
})($_composer_autoload_path ?? dirname(__DIR__) . '/vendor/autoload.php');

0 comments on commit 41932ac

Please sign in to comment.