Skip to content

Commit

Permalink
Fix skill rank modifiers not being consistent serialized as objects
Browse files Browse the repository at this point in the history
  • Loading branch information
LartTyler committed Jan 21, 2020
1 parent 2b86d08 commit 50afb47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Controller/CharmsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function(SkillRank $skillRank) use ($projection): array {
'id' => $skillRank->getId(),
'level' => $skillRank->getLevel(),
'description' => $skillRank->getDescription(),
'modifiers' => $skillRank->getModifiers(),
'modifiers' => $skillRank->getModifiers() ?: new \stdClass(),
];

if ($projection->isAllowed('ranks.skills.skill'))
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/DecorationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function(SkillRank $rank) use ($projection): array {
'id' => $rank->getId(),
'description' => $rank->getDescription(),
'level' => $rank->getLevel(),
'modifiers' => $rank->getModifiers(),
'modifiers' => $rank->getModifiers() ?: new \stdClass(),
];

if ($projection->isAllowed('skills.skill'))
Expand Down

0 comments on commit 50afb47

Please sign in to comment.