Skip to content

Commit

Permalink
Fix strict typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
chiiya committed Apr 1, 2022
1 parent 7c76b1d commit eb7997c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php declare(strict_types=1);
<?php

declare(strict_types=1);

namespace Chiiya\Passes\Tests;

Expand All @@ -14,7 +16,9 @@ public function assertSameArray(array $a, array $b): void

protected function setUp(): void
{
if (file_exists(realpath(__DIR__.'/../.env'))) {
$path = realpath(__DIR__.'/../.env');

if ($path !== false && file_exists($path)) {
$dotenv = Dotenv::createUnsafeImmutable(realpath(__DIR__.'/../'));
$dotenv->load();
}
Expand Down

0 comments on commit eb7997c

Please sign in to comment.