dotenv-org / phpdotenv-vault

Load environment variables from encrypted .env.vault files
https://www.dotenv.org/docs/languages/php
BSD 3-Clause "New" or "Revised" License
8 stars 3 forks source link

PHPStan: Class DotenvVault\\DotEnvVault referenced with incorrect case: DotenvVault\\DotenvVault #6

Closed SchoppAx closed 10 months ago

SchoppAx commented 1 year ago

Hi,

the class name is written in CamelCase so the current readme example: https://github.com/dotenv-org/phpdotenv-vault/blob/61dbb12f3d360027092e36b6e42a388d1bae3cb4/README.md?plain=1#L37-L41

Should be look like:

use DotenvVault\DotEnvVault; 
require 'vendor/autoload.php'; 

$dotenv = DotEnvVault::createImmutable(__DIR__, '.env.vault'); 
$dotenv->load(); # take environment variables from .env.vault 
motdotla commented 10 months ago

This is fixed in v0.2.x. Thank you for catching this. This library is getting love and documentation this weekend.