Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit ba2ac3c

Browse files
committed
Update todo for properties in interfaces
1 parent 5795818 commit ba2ac3c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Builder/Encoder/FieldPathEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function encode(mixed $value): string
2525
throw UnsupportedValueException::invalidEncodableValue($value);
2626
}
2727

28-
// TODO: needs method because of interface
28+
// TODO: needs method because interfaces can't have properties
2929
return '$' . $value->name;
3030
}
3131
}

src/Builder/Encoder/VariableEncoder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function encode(mixed $value): string
2525
throw UnsupportedValueException::invalidEncodableValue($value);
2626
}
2727

28+
// TODO: needs method because interfaces can't have properties
2829
return '$$' . $value->name;
2930
}
3031
}

0 commit comments

Comments
 (0)