Skip to content

Commit cda0293

Browse files
authored
Merge pull request #4 from KaririCode-Framework/develop
style: Apply PHP CS Fixer recommendations
2 parents 37dad36 + d44de7c commit cda0293

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

tests/Unit/EnvFunctionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
namespace KaririCode\Dotenv\Tests\Unit;
66

7-
use PHPUnit\Framework\TestCase;
8-
97
use function KaririCode\Dotenv\env;
108

9+
use PHPUnit\Framework\TestCase;
10+
1111
final class EnvFunctionTest extends TestCase
1212
{
1313
protected function setUp(): void

tests/Unit/Type/Caster/DotenvTypeCasterRegistryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function testFallbackWhenGetReturnsNonTypeCaster(): void
104104
$input = 'test_value';
105105
$result = $this->registry->cast('any_type', $input);
106106

107-
$this->assertSame($input, $result, "Should return original value when get() returns non-TypeCaster");
107+
$this->assertSame($input, $result, 'Should return original value when get() returns non-TypeCaster');
108108
}
109109

110110
public function testFallbackWhenGetReturnsNull(): void
@@ -120,7 +120,7 @@ public function testFallbackWhenGetReturnsNull(): void
120120
$input = 'test_value';
121121
$result = $this->registry->cast('any_type', $input);
122122

123-
$this->assertSame($input, $result, "Should return original value when get() returns null");
123+
$this->assertSame($input, $result, 'Should return original value when get() returns null');
124124
}
125125

126126
public function testRegisterNonTypeCompliantCaster(): void

tests/Unit/Type/Detector/DotenvTypeDetectorRegistryTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,12 @@ public function testDetectTypeWithNoMatchingDetectors(): void
6666
$this->assertSame('string', $result, "Should fallback to 'string' when no detector matches");
6767
}
6868

69-
7069
public function testFallbackToStringForUnrecognizedTypes(): void
7170
{
7271
// Remove all default detectors
7372
$reflectionProperty = new \ReflectionProperty(DotenvTypeDetectorRegistry::class, 'detectors');
7473
$reflectionProperty->setAccessible(true);
75-
$reflectionProperty->setValue($this->registry, new \KaririCode\DataStructure\Collection\ArrayList());
74+
$reflectionProperty->setValue($this->registry, new ArrayList());
7675

7776
$unrecognizedValues = [
7877
'complex_value' => new \stdClass(),

0 commit comments

Comments
 (0)