commit e041a3a199f3257afdb599dbd5f5f16065766f2b Author: smarcet Date: Fri Oct 16 16:46:50 2020 -0300 Fixed typo Change-Id: I73001d50d59edf10ed4fbd197db372aae81b4406 Signed-off-by: smarcet diff --git a/app/Models/Foundation/Summit/Factories/SponsorUserInfoGrantFactory.php b/app/Models/Foundation/Summit/Factories/SponsorUserInfoGrantFactory.php index 7cc874f..4b63f9c 100644 --- a/app/Models/Foundation/Summit/Factories/SponsorUserInfoGrantFactory.php +++ b/app/Models/Foundation/Summit/Factories/SponsorUserInfoGrantFactory.php @@ -27,10 +27,10 @@ final class SponsorUserInfoGrantFactory $grant = null; $class_name = $payload['class_name']; switch($class_name){ - case SponsorUserInfoGrant::class: + case SponsorUserInfoGrant::ClassName: $grant = self::populate(new SponsorUserInfoGrant, $payload); break; - case SponsorBadgeScan::class: + case SponsorBadgeScan::ClassName: $grant = self::populate(new SponsorBadgeScan, $payload); break; } @@ -45,9 +45,9 @@ final class SponsorUserInfoGrantFactory public static function populate(SponsorUserInfoGrant $grant, array $payload):SponsorUserInfoGrant{ $class_name = $payload['class_name']; switch($class_name){ - case SponsorUserInfoGrant::class: + case SponsorUserInfoGrant::ClassName: break; - case SponsorBadgeScan::class: + case SponsorBadgeScan::ClassName: break; }