Skip to content

Commit 410c76c

Browse files
committed
fix: static analysis, failing tests
1 parent eb41605 commit 410c76c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/lib/postgresql/src/Flow/PostgreSql/Client/Types/Converter/MultirangeConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Flow\PostgreSql\Client\Types\Converter;
66

7-
use Flow\PostgreSql\Client\Types\{ValueConverter};
7+
use Flow\PostgreSql\Client\Types\ValueConverter;
88

99
/**
1010
* Multirange type converter for PostgreSQL 14+.

src/lib/postgresql/tests/Flow/PostgreSql/Tests/Unit/Client/Types/Converter/JsonConverterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public function test_null_handling() : void
4747
public function test_object_with_to_string_method() : void
4848
{
4949
$converter = new JsonConverter();
50-
$jsonObject = new class {
51-
public function toString() : string
50+
$jsonObject = new class implements \Stringable {
51+
public function __toString() : string
5252
{
5353
return '{"name":"test","value":42}';
5454
}

src/lib/postgresql/tests/Flow/PostgreSql/Tests/Unit/Client/Types/Converter/UuidConverterTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public function test_null_handling() : void
3434
public function test_object_with_to_string_method() : void
3535
{
3636
$converter = new UuidConverter();
37-
$uuidObject = new class {
38-
public function toString() : string
37+
$uuidObject = new class implements \Stringable {
38+
public function __toString() : string
3939
{
4040
return '550e8400-e29b-41d4-a716-446655440000';
4141
}

0 commit comments

Comments
 (0)