Skip to content

Commit 79cc4b2

Browse files
committed
Don't expose problem types_to_string constants in the API
1 parent 36d1ba0 commit 79cc4b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webapp/src/Entity/Problem.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class Problem extends BaseApiEntity implements
111111
/**
112112
* @var array<int, string>
113113
*/
114+
#[Serializer\Exclude]
114115
private array $typesToString = [
115116
self::TYPE_PASS_FAIL => 'pass-fail',
116117
self::TYPE_SCORING => 'scoring',

0 commit comments

Comments
 (0)