← All changes
|
src/Framework/Receipts/Actions/GenerateConfirmationPageReceipt.php
+4
-2
4.16.8
→
4.17.0
View file →
| @@ -333,12 +333,13 @@ | ||
| 333 | 333 | return DonationForm::find($formId); |
| 334 | 334 | } |
| 335 | 335 | |
| 336 | 336 | /** |
| 337 | + * @since 4.17.0 Declare the nullable parameter explicitly. | |
| 337 | 338 | * @since 4.16.8 Apply legacy tags before donor-supplied V3 tag values. |
| 338 | 339 | * @since 3.0.0 |
| 339 | 340 | */ |
| 340 | - protected function getHeading(DonationReceipt $receipt, DonationForm $donationForm = null): string | |
| 341 | + protected function getHeading(DonationReceipt $receipt, ?DonationForm $donationForm = null): string | |
| 341 | 342 | { |
| 342 | 343 | if (!$donationForm) { |
| 343 | 344 | $content = __("Hey {first_name}, thanks for your donation!", 'give'); |
| 344 | 345 | } else { |
| @@ -351,12 +352,13 @@ | ||
| 351 | 352 | ))->getContent(); |
| 352 | 353 | } |
| 353 | 354 | |
| 354 | 355 | /** |
| 356 | + * @since 4.17.0 Declare the nullable parameter explicitly. | |
| 355 | 357 | * @since 4.16.8 Apply legacy tags before donor-supplied V3 tag values. |
| 356 | 358 | * @since 3.0.0 |
| 357 | 359 | */ |
| 358 | - protected function getDescription(DonationReceipt $receipt, DonationForm $donationForm = null): string | |
| 360 | + protected function getDescription(DonationReceipt $receipt, ?DonationForm $donationForm = null): string | |
| 359 | 361 | { |
| 360 | 362 | if (!$donationForm) { |
| 361 | 363 | $content = __( |
| 362 | 364 | "{first_name}, your contribution means a lot and will be put to good use in making a difference. We’ve sent your donation receipt to {email}.", |