Skip to content

Commit

Permalink
Fix namespace typo; Correct namespace is OscarOtero\Env
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus committed May 26, 2020
1 parent 58fda94 commit edfc958
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $ composer require oscarotero/env
var_dump(getenv('FOO')); //string(5) "false"

// Using Env:
var_dump(\OscaOtero\Env\Env::get('FOO')); //bool(false)
var_dump(\OscarOtero\Env\Env::get('FOO')); //bool(false)
```

## Available conversions
Expand All @@ -49,7 +49,7 @@ There's also additional settings that you can enable (they're disabled by defaul
* `Env::LOCAL_FIRST` To get first the values of locally-set environment variables.

```php
use \OscaOtero\Env\Env;
use OscarOtero\Env\Env;

//Convert booleans and null, but not integers or strip quotes
Env::$options = Env::CONVERT_BOOL | Env::CONVERT_NULL;
Expand All @@ -66,7 +66,7 @@ Env::$options ^= Env::CONVERT_NULL;
By default, if the value does not exist, returns `null`, but you can change for any other value:

```php
\OscaOtero\Env\Env::$default = false;
\OscarOtero\Env\Env::$default = false;
```

---
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"autoload": {
"psr-4": {
"OscaOtero\\Env\\": "src/"
"OscarOtero\\Env\\": "src/"
}
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion src/Env.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace OscaOtero\Env;
namespace OscarOtero\Env;

class Env
{
Expand Down
2 changes: 1 addition & 1 deletion tests/ConversionTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use OscaOtero\Env\Env;
use OscarOtero\Env\Env;

class ConversionTest extends PHPUnit_Framework_TestCase
{
Expand Down

0 comments on commit edfc958

Please sign in to comment.