Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #6

Merged
merged 3 commits into from
Aug 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,31 @@ class ExampleIntegration implements PackageEnvLoaderContract
use PackageEnvLoader;

/**
* @var array
* @var bool
*/
private array $packageEnv;
private bool $packageEnvLoaded;

/**
* ExampleIntegration constructor.
* ExampleIntegration constructor.
*/
public function __construct()
{
$this->packageEnv = $this->createPackageDotenv('.env');
$this->packageEnvLoaded = $this->createPackageDotenv(['.env.first.test', '.env.second.test']);
}

/**
* Example of configuration
* Define the root path for environment files.
*
* @param string $path
* @param array $paths
*
* @return string
* @return array
*/
final public function packageEnvRootPath(string $path = '/..'): string
public function packageEnvRootPath(array $paths = [__DIR__ . '/..']): string|array
{
return __DIR__ . $path;
return $paths;
}
}

````

## Contributing
Expand Down
2 changes: 1 addition & 1 deletion stubs/ExampleIntegration.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class ExampleIntegration implements PackageEnvLoaderContract
{
use PackageEnvLoader;

public mixed $packageEnv;
private bool $packageEnv;

/**
* ExampleIntegration constructor.
Expand Down