From 73cc27b8267c488c911ffbc83e4ab18627c2e8ed Mon Sep 17 00:00:00 2001 From: Jon Waldstein Date: Tue, 14 Jan 2025 14:32:35 -0500 Subject: [PATCH] fix: update donor proxy --- src/Donors/Repositories/DonorRepository.php | 1 - src/Donors/Repositories/DonorRepositoryProxy.php | 10 +++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Donors/Repositories/DonorRepository.php b/src/Donors/Repositories/DonorRepository.php index 380b90cf71..982e4d77a1 100644 --- a/src/Donors/Repositories/DonorRepository.php +++ b/src/Donors/Repositories/DonorRepository.php @@ -21,7 +21,6 @@ */ class DonorRepository { - /** * @var DonorMetaRepository */ diff --git a/src/Donors/Repositories/DonorRepositoryProxy.php b/src/Donors/Repositories/DonorRepositoryProxy.php index 798039ce91..b947bce9ff 100644 --- a/src/Donors/Repositories/DonorRepositoryProxy.php +++ b/src/Donors/Repositories/DonorRepositoryProxy.php @@ -10,10 +10,12 @@ * This proxy determines which donors repository to call donors->method() from. * In the case of naming conflicts, we will manually check SHARED_METHOD against their arguments. * + * @unreleased added $meta property * @since 2.19.6 * * @mixin DonorRepository * @mixin Give_DB_Donors + * @mixin DonorMetaRepository * * @throws InvalidArgumentException */ @@ -30,17 +32,23 @@ class DonorRepositoryProxy * @var DonorRepository */ private $donorRepository; + /** + * @var DonorMetaRepository + */ + public $meta; /** * The Give_DB_Donors class extends Give_DB which has & assigns public properties that we need to * dynamically assign to this proxy class or else they won't be accessible. * + * @unreleased added $meta property * @since 2.19.6 */ - public function __construct(Give_DB_Donors $legacyDonorRepository, DonorRepository $donorRepository) + public function __construct(Give_DB_Donors $legacyDonorRepository, DonorRepository $donorRepository, DonorMetaRepository $meta) { $this->legacyDonorRepository = $legacyDonorRepository; $this->donorRepository = $donorRepository; + $this->meta = $meta; $properties = get_object_vars($legacyDonorRepository);