From 87698c962c301b8bebf6abe4799d42e759dc920f Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Mon, 28 Apr 2025 14:14:47 +0200 Subject: [PATCH] Add DEFAULT const to MatchAgainst enum --- src/ApiResource/Matchfunding/MatchStrategyApiResource.php | 2 +- src/Entity/Matchfunding/MatchAgainst.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ApiResource/Matchfunding/MatchStrategyApiResource.php b/src/ApiResource/Matchfunding/MatchStrategyApiResource.php index 9e40950..d96df59 100644 --- a/src/ApiResource/Matchfunding/MatchStrategyApiResource.php +++ b/src/ApiResource/Matchfunding/MatchStrategyApiResource.php @@ -65,5 +65,5 @@ class MatchStrategyApiResource * - `budget_min` the minimum in the Project's budget * - `budget_opt` the optimum in the Project's budget. */ - public MatchAgainst $match = MatchAgainst::Charge; + public MatchAgainst $match = MatchAgainst::DEFAULT; } diff --git a/src/Entity/Matchfunding/MatchAgainst.php b/src/Entity/Matchfunding/MatchAgainst.php index eed0825..fc1959c 100644 --- a/src/Entity/Matchfunding/MatchAgainst.php +++ b/src/Entity/Matchfunding/MatchAgainst.php @@ -7,6 +7,8 @@ namespace App\Entity\Matchfunding; */ enum MatchAgainst: string { + public const DEFAULT = self::Charge; + /** * The money to be matched will be extracted from a Charge item. */