Skip to content

Commit afa0d25

Browse files
committed
Remove dotenv
1 parent 707a83a commit afa0d25

File tree

6 files changed

+1
-105
lines changed

6 files changed

+1
-105
lines changed

.env.action

Lines changed: 0 additions & 33 deletions
This file was deleted.

.env.example

Lines changed: 0 additions & 33 deletions
This file was deleted.

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
/.github export-ignore
66
/tests export-ignore
77
/.editorconfig export-ignore
8-
/.env.* export-ignore
98
/.gitattributes export-ignore
109
/.gitignore export-ignore
1110
/.phpmd.xml export-ignore
1211
/check_migrations.sh export-ignore
1312
/phpcs.xml export-ignore
1413
/phpstan.neon export-ignore
1514
/phpunit.xml.dist export-ignore
15+
/phpunit-action.xml export-ignore
1616
/testbench.yaml export-ignore

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
/migrations
66
/storage
77
/vendor
8-
.env
98
.php-cs-fixer.cache
109
.php_cs.cache
1110
.phpstorm.meta.php

phpstan.neon

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ parameters:
1111
level: 6
1212

1313
ignoreErrors:
14-
- '#Class Dotenv\\Dotenv constructor invoked with 1 parameter, 4 required.#'
15-
- '#Parameter \#1 \$store of class Dotenv\\Dotenv constructor expects Dotenv\\Store\\StoreInterface, string given.#'
1614
- '#Method KitLoong\\MigrationsGenerator\\Database\\(.*)Schema::getViews\(\) should return Illuminate\\Support\\Collection<int, KitLoong\\MigrationsGenerator\\Schema\\Models\\View> but returns Illuminate\\Support\\Collection<(int|\(int\|string\)), KitLoong\\MigrationsGenerator\\Database\\Models\\(.*)\\(.*)View>.#'
1715
- '#Method KitLoong\\MigrationsGenerator\\Database\\(.*)Schema::getProcedures\(\) should return Illuminate\\Support\\Collection<int, KitLoong\\MigrationsGenerator\\Schema\\Models\\Procedure> but returns Illuminate\\Support\\Collection<(int|\(int\|string\)), KitLoong\\MigrationsGenerator\\Database\\Models\\(.*)\\(.*)Procedure>.#'
1816
- '#Method KitLoong\\MigrationsGenerator\\Database\\(.*)Schema::getForeignKeys\(\) should return Illuminate\\Support\\Collection<int, KitLoong\\MigrationsGenerator\\Schema\\Models\\ForeignKey> but returns Illuminate\\Support\\Collection<(int|\(int\|string\)), KitLoong\\MigrationsGenerator\\Database\\Models\\(.*)\\(.*)ForeignKey>.#'

tests/Feature/FeatureTestCase.php

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace KitLoong\MigrationsGenerator\Tests\Feature;
44

5-
use Dotenv\Dotenv;
65
use Illuminate\Database\Migrations\MigrationRepositoryInterface;
76
use Illuminate\Support\Facades\DB;
87
use Illuminate\Support\Facades\File;
@@ -13,20 +12,6 @@ abstract class FeatureTestCase extends TestCase
1312
{
1413
abstract protected function refreshDatabase(): void;
1514

16-
// /**
17-
// * @inheritDoc
18-
// */
19-
// protected function getEnvironmentSetUp($app): void
20-
// {
21-
// parent::getEnvironmentSetUp($app);
22-
//
23-
// try {
24-
// $this->loadDotenv();
25-
// } catch (InvalidPathException) {
26-
// $this->markTestSkipped('Skipped feature tests.');
27-
// }
28-
// }
29-
3015
protected function setUp(): void
3116
{
3217
parent::setUp();
@@ -41,26 +26,6 @@ protected function tearDown(): void
4126
parent::tearDown();
4227
}
4328

44-
protected function loadDotenv(): void
45-
{
46-
if (method_exists(Dotenv::class, 'createImmutable')) {
47-
$dotenv = Dotenv::createImmutable(base_path());
48-
$dotenv->load();
49-
return;
50-
}
51-
52-
if (method_exists(Dotenv::class, 'create')) {
53-
/** @noinspection PhpParamsInspection */
54-
$dotenv = Dotenv::create(base_path());
55-
$dotenv->load();
56-
return;
57-
}
58-
59-
/** @noinspection PhpParamsInspection */
60-
$dotenv = new Dotenv(base_path());
61-
$dotenv->load();
62-
}
63-
6429
protected function prepareStoragePath(): void
6530
{
6631
File::deleteDirectory(storage_path());

0 commit comments

Comments
 (0)