Skip to content

Commit ad5b49a

Browse files
committed
Add return type hint for Encoder::encode() implementation
This was not applicable to the commit in v1.x (36fca42), but is necessary in v2.x since 5dda098 added return types to all methods.
1 parent 1038e95 commit ad5b49a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Builder/BuilderEncoderTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ public function canEncode(mixed $value): bool
393393
return $value instanceof FieldPathInterface;
394394
}
395395

396-
public function encode(mixed $value)
396+
public function encode(mixed $value): mixed
397397
{
398398
return '$prefix.' . $value->name;
399399
}

0 commit comments

Comments
 (0)