Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bundle/src/Api/ApiExceptionListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ public function __invoke(ExceptionEvent $event): void

private function hideEnum(string $message): string
{
// TODO: new versions of Symfony does not include the enum name in the error

// This value should be of type App\Enum\SubscriberStatus
// This value should be of type subscribed|unsubscribed|pending.
$message = preg_replace_callback(
Expand Down
2 changes: 2 additions & 0 deletions src/Billing/License/Resolved/ResolvedLicenseSubscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class ResolvedLicenseSubscription implements \JsonSerializable
{

public function __construct(
public int $id,
public string $status,
public float $monthlyPrice,
public bool $isAnnual,
Expand All @@ -19,6 +20,7 @@ public function __construct(
public function jsonSerialize(): mixed
{
return [
'id' => $this->id,
'status' => $this->status,
'monthly_price' => $this->monthlyPrice,
'is_annual' => $this->isAnnual,
Expand Down