Skip to content

Commit 8afcdeb

Browse files
committed
Add return type to __toString() methods
1 parent 1f9b72a commit 8afcdeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/EnvVarProcessorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ public function loadEnvVars(): array
871871
'FOO_ENV_LOADER' => '123',
872872
'BAZ_ENV_LOADER' => '',
873873
'LAZY_ENV_LOADER' => new class() {
874-
public function __toString()
874+
public function __toString(): string
875875
{
876876
return '';
877877
}
@@ -888,7 +888,7 @@ public function loadEnvVars(): array
888888
'BAR_ENV_LOADER' => '456',
889889
'BAZ_ENV_LOADER' => '567',
890890
'LAZY_ENV_LOADER' => new class() {
891-
public function __toString()
891+
public function __toString(): string
892892
{
893893
return '678';
894894
}

0 commit comments

Comments
 (0)