Skip to content

Commit

Permalink
Merge pull request #13 from vansari/hotfix/fix-type-name
Browse files Browse the repository at this point in the history
Hotfix/fix type name
  • Loading branch information
vansari authored Mar 8, 2023
2 parents 7afe367 + 1fc13c9 commit 6bdeee0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Types/BooleanType.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class BooleanType implements TypeInterface
{
public function getName(): string
{
return 'boolean';
return 'bool';
}

public function convert(string $value): bool
Expand Down
2 changes: 1 addition & 1 deletion src/Types/IntegerType.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class IntegerType implements TypeInterface
{
public function getName(): string
{
return 'integer';
return 'int';
}

public function convert(string $value): int
Expand Down
6 changes: 3 additions & 3 deletions tests/EnvParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static function providerTestParseWillPass(): array
'Get Env as Int' => [
'SOME_ENV',
'1234',
'integer',
'int',
1234,
],
'Get Env as Float' => [
Expand All @@ -35,13 +35,13 @@ public static function providerTestParseWillPass(): array
'Get Env ON as Bool' => [
'SOME_ENV',
'ON',
'boolean',
'bool',
true
],
'Get Env "false" as Bool' => [
'SOME_ENV',
'false',
'boolean',
'bool',
false
],
'Get Env array as Array' => [
Expand Down

0 comments on commit 6bdeee0

Please sign in to comment.