Skip to content

Commit

Permalink
Chore: update base enum class with forked version from myclabs (#7383)
Browse files Browse the repository at this point in the history
Co-authored-by: Jon Waldstein <[email protected]>
Co-authored-by: Jon Waldstein <[email protected]>
  • Loading branch information
3 people authored Oct 15, 2024
1 parent 3858a84 commit 29ba304
Show file tree
Hide file tree
Showing 13 changed files with 798 additions and 88 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"paypal/paypal-checkout-sdk": "^1.0",
"kjohnson/format-object-list": "^0.1.0",
"fakerphp/faker": "^1.9",
"myclabs/php-enum": "^1.6",
"symfony/http-foundation": "^v3.4.47",
"moneyphp/money": "v3.3.1",
"stellarwp/field-conditions": "^1.1",
Expand Down
68 changes: 5 additions & 63 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Donations/ValueObjects/DonationMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Give\Donations\ValueObjects;

use MyCLabs\Enum\Enum;
use Give\Framework\Support\ValueObjects\Enum;

/**
* @since 2.19.6
Expand Down
8 changes: 4 additions & 4 deletions src/Donors/ValueObjects/DonorMetaKeys.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
/**
* @since 2.19.6
*
* @method static FIRST_NAME()
* @method static LAST_NAME()
* @method static ADDITIONAL_EMAILS()
* @method static PREFIX()
* @method static DonorMetaKeys FIRST_NAME()
* @method static DonorMetaKeys LAST_NAME()
* @method static DonorMetaKeys ADDITIONAL_EMAILS()
* @method static DonorMetaKeys PREFIX()
*/
class DonorMetaKeys extends Enum
{
Expand Down
10 changes: 5 additions & 5 deletions src/Framework/Models/ValueObjects/Relationship.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
*
* @since 2.19.6
*
* @method static HAS_ONE();
* @method static HAS_MANY();
* @method static MANY_TO_MANY();
* @method static BELONGS_TO();
* @method static BELONGS_TO_MANY();
* @method static Relationship HAS_ONE();
* @method static Relationship HAS_MANY();
* @method static Relationship MANY_TO_MANY();
* @method static Relationship BELONGS_TO();
* @method static Relationship BELONGS_TO_MANY();
*/
class Relationship extends Enum
{
Expand Down
Loading

0 comments on commit 29ba304

Please sign in to comment.