Skip to content

Commit 99a35da

Browse files
Fix psalm regressions. (#1680)
1 parent 7981956 commit 99a35da

File tree

7 files changed

+8
-0
lines changed

7 files changed

+8
-0
lines changed

src/Config/SDK/Configuration/Environment/Adapter/SymfonyDotenvProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
final class SymfonyDotenvProvider implements EnvSourceProvider
1818
{
1919
/** @psalm-suppress UndefinedClass */
20+
#[\Override]
2021
public function getEnvSource(): EnvSource
2122
{
2223
$installPath = InstalledVersions::getRootPackage()['install_path'];

src/Config/SDK/Configuration/Environment/Adapter/VlucasPhpdotenvProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
final class VlucasPhpdotenvProvider implements EnvSourceProvider
1717
{
1818
/** @psalm-suppress UndefinedClass */
19+
#[\Override]
1920
public function getEnvSource(): EnvSource
2021
{
2122
$backup = [$_SERVER, $_ENV];

src/Config/SDK/Configuration/Environment/LazyEnvSource.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public function __construct(
1616
) {
1717
}
1818

19+
#[\Override]
1920
public function readRaw(string $name): mixed
2021
{
2122
if (!$this->env instanceof EnvSource) {

src/SDK/Common/Configuration/Resolver/EnvironmentResolver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function hasVariable(string $variableName): bool
2525
return !Configuration::isEmpty($env);
2626
}
2727

28+
#[\Override]
2829
public function retrieveValue(string $variableName): mixed
2930
{
3031
$value = getenv($variableName);

src/SDK/Common/Configuration/Resolver/PhpIniResolver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function retrieveValue(string $variableName): mixed
2727
return $value;
2828
}
2929

30+
#[\Override]
3031
public function hasVariable(string $variableName): bool
3132
{
3233
$value = $this->accessor->get($variableName);

src/SDK/Common/Configuration/Resolver/SdkConfigurationResolver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ public function __construct()
3636
$this->reader = new EnvSourceReader($envSources);
3737
}
3838

39+
#[\Override]
3940
public function retrieveValue(string $variableName): mixed
4041
{
4142
return $this->reader->read($variableName);
4243
}
4344

45+
#[\Override]
4446
public function hasVariable(string $variableName): bool
4547
{
4648
return !Configuration::isEmpty($this->reader->read($variableName));

tests/Integration/SDK/Common/Configuration/TestEnvSourceProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
class TestEnvSourceProvider implements EnvSourceProvider
1212
{
13+
#[\Override]
1314
public function getEnvSource(): EnvSource
1415
{
1516
return new ArrayEnvSource([

0 commit comments

Comments
 (0)