fix tests
This commit is contained in:
@@ -2,12 +2,14 @@
|
||||
|
||||
namespace App\Services\PublicWinners;
|
||||
|
||||
use App\Controllers\WinnersController;
|
||||
use App\Models\ClassSection;
|
||||
use App\Models\Competition;
|
||||
use Carbon\CarbonInterface;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
/**
|
||||
* legacy {@see \App\Controllers\WinnersController} — public published winners pages.
|
||||
* legacy {@see WinnersController} — public published winners pages.
|
||||
*/
|
||||
class PublicWinnersPortalService
|
||||
{
|
||||
@@ -104,7 +106,7 @@ class PublicWinnersPortalService
|
||||
{
|
||||
$arr = $c->toArray();
|
||||
foreach ($arr as $key => $value) {
|
||||
if ($value instanceof \Carbon\CarbonInterface) {
|
||||
if ($value instanceof CarbonInterface) {
|
||||
$arr[$key] = $value->format('Y-m-d H:i:s');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user