Use JsonSerializable::jsonSerialize instead of a custom method
IAccount extends php's JsonSerialize interface which already comes
with a proper method that seralizes an object into an array. Hence
we shall use this method instead of duplicating and throwing an
exception in the implementation.
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
Showing
- lib/Account.php 1 addition, 8 deletionslib/Account.php
- lib/Controller/AccountsController.php 2 additions, 2 deletionslib/Controller/AccountsController.php
- lib/Controller/PageController.php 1 addition, 1 deletionlib/Controller/PageController.php
- lib/Service/IAccount.php 0 additions, 5 deletionslib/Service/IAccount.php
- lib/Service/UnifiedAccount.php 1 addition, 10 deletionslib/Service/UnifiedAccount.php
Loading
Please register or sign in to comment